8
PayPal Express Checkout in Meteor Albert Tirtohadi

Paypal Express Checkout In Meteor

Embed Size (px)

Citation preview

PayPal Express Checkout in Meteor

Albert Tirtohadi

Project Background

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

API Credentialsdeveloper.paypal.com

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