javascript - How to store credit card in Paypal Vault without using the server as a proxy -


we using paypal vault store credit cards. (https://developer.paypal.com/webapps/developer/docs/integration/direct/store-a-credit-card/) goes this:

1) ajax call browser server 2) server sends request accesstoken paypal 3) paypal responds token

so: user browser -> our server -> paypal -> our server

because of new internal policy need remove 2nd step. so, should go users browser paypal, receive token, store token

user browser -> paypal -> user browser -> our server

any thoughts on that?

update:
safe send access token through browser? (i can create on server) https://developer.paypal.com/docs/integration/direct/make-your-first-call/


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -