Paypal Express Checkout In Meteor
-
Upload
albert-tirtohadi -
Category
Technology
-
view
327 -
download
0
Transcript of Paypal Express Checkout In Meteor
Express Checkout
OurServer
PayPalServer
Give meURL
URLCustomer
I wantTo pay
RedirectCustomer
PayPalPayment
Page
PaymentAuthorized
Do payment
PayPal APIs
• New REST APIs
• REST API unable to accept credit card payment in Singapore
• Classic API
CURL?curl -s --insecure https://api-3t.sandbox.paypal.com/nvp -d"USER=<callerID> # User ID of the PayPal caller account&PWD=<callerPswd> # Password of the caller account&SIGNATURE=<callerSig> # Signature of the caller account&METHOD=SetExpressCheckout&VERSION=93&PAYMENTREQUEST_0_PAYMENTACTION=SALE # type of payment&PAYMENTREQUEST_0_AMT=19.95 # amount of transaction&PAYMENTREQUEST_0_CURRENCYCODE=USD # currency of transaction&RETURNURL=http://www.example.com/success.html # URL of your payment confirmation page&CANCELURL=http://www.example.com/cancel.html" # URL redirect if customer cancels payment
meteor add httpHTTP.call(“POST”, …)
NPM Package: paypal-ec
meteor add meteorhacks:npmnpm install -g paypal-ec
Package.json{ "paypal-ec" : "0.2.6"}
Demo
Getfynd.meteor.com
Sandbox credentials:URL: sandbox.paypal.com
Seller: [email protected]: meteordemosg
Buyer: [email protected]: meteordemosg