◎위챗 : speedseoul
https://www.npmjs.com/package/paypal-express-checkout
Read here: https://developer.paypal.com/docs/classic/api/apiCredentials/#creating-an-api-signature
$ npm install paypal-express-checkout
var Paypal = ;// debug = optional, defaults to false, if true then paypal's sandbox url is used// paypal.init('some username', 'some password', 'signature', 'return url', 'cancel url', debug);var paypal = Paypal; // Localization (OPTIONAL): https://developer.paypal.com/docs/classic/api/locale_codes/// paypal.locale = 'SK';// or// paypal.locale = 'en_US'; // checkout// requireAddress = optional, defaults to false// paypal.pay('Invoice number', amount, 'description', 'currency', requireAddress, customData, callback);// paypal.pay('20130001', 123.23, 'iPad', 'EUR', function(err, url) {// or with "requireAddress": truepaypal ; // result in GET method// paypal.detail('token', 'PayerID', callback);// or// paypal.detail(totaljs.controller, callback); paypal ;
Canceled_Reversal: A reversal has been canceled. For example, you won a dispute with the customer, and the funds for the transaction that was reversed have been returned to you.
Completed: The payment has been completed, and the funds have been added successfully to your account balance.
Created: A German ELV payment is made using Express Checkout.
Denied: You denied the payment. This happens only if the payment was previously pending because of possible reasons described for the pending_reason variable or the Fraud_Management_Filters_x variable.
Expired: This authorization has expired and cannot be captured.
Failed: The payment has failed. This happens only if the payment was made from your customer’s bank account.
Pending: The payment is pending. See pending_reason for more information.
Refunded: You refunded the payment.
Reversed: A payment was reversed due to a chargeback or other type of reversal. The funds have been removed from your account balance and returned to the buyer. The reason for the reversal is specified in the ReasonCode element.
Processed: A payment has been accepted.
Voided: This authorization has been voided.
Login into your bussiness account and click here: https://www.sandbox.paypal.com/ca/cgi-bin/?cmd=_profile-pref&source=acct_setup&fli=true
Contributor | Type | |
---|---|---|
Peter Å irka | author + support | petersirka@gmail.com |
Martin Smola | support + contributor | smola.martin@gmail.com |
Johann Botha | contributor | johannbbotha@gmail.com |