Use NVP/SOAP Api from PayPal
This commit is contained in:
1
Yavsc/wwwroot/js/paypalbutton.min.js
vendored
Normal file
1
Yavsc/wwwroot/js/paypalbutton.min.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
+function(n,t,e,o,u){n(document).ready(function(){t.Button.render({env:e,commit:!0,payment:function(n,e){return t.request.post(o).then(function(t){n(t.id)})["catch"](function(n){e(n)})},onAuthorize:function(n){return t.request.post(u,{paymentID:n.paymentID,payerID:n.payerID}).then(function(n){document.location="@ViewBag.Urls.Details"})["catch"](function(t){document.location="/Manage/PaymentInfo/"+n.paymentID+"/?error="+t})}},"#paypal-button")})}(jQuery);
|
Reference in New Issue
Block a user