Paypal Access-Control-Allow-Origin

后端 未结 1 1726
孤城傲影
孤城傲影 2020-12-12 05:08

I\'m trying to learn paypal payment. I have done a simple AngularJS application that use Paypal-Express-Checkout. As it says on the documentation, first of all I have to do

相关标签:
1条回答
  • 2020-12-12 05:35

    You have to perform your Paypal transaction on the back end, and the message you're seeing is Paypal enforcing that notion. See this article on CORS for more info.

    Your angular http call should be sending the basic transaction info to your server, which will then construct an API request for Paypal, handle the response from Paypal, and then convey that information for consumption by the client side.

    [edited to add more info about CORS]

    0 讨论(0)
提交回复
热议问题