Client library for PayPal (Sandbox)
npm install --save @datafire/paypal
let paypal = require('@datafire/paypal').create();
.then(data => {
console.log(data);
});
Bring payments to apps, mobile and social with Adaptive Payments (Sandbox API).
Use the GetAdvancedPersonalData API operation to obtain sensitive personal data for an account holder.
paypal.Permissions.GetAdvancedPersonalData.post(null, context)
This action has no parameters
Output schema unknown
Use the GetBasicPersonalData API operation to obtain basic personal data for an account holder.
paypal.Permissions.GetBasicPersonalData.post(null, context)
This action has no parameters
Output schema unknown
Use the CancelPermissions API operation to cancel access to a set of permissions.
paypal.Permissions.CancelPermissions.post(null, context)
This action has no parameters
Output schema unknown
Use the GetPermissons API operation to obtain the permissions associated with an access token.
paypal.Permissions.GetPermissions.post(null, context)
This action has no parameters
Output schema unknown
Use the GetAccessToken API operation to obtain an access token for a set of permissions.
paypal.Permissions.GetAccessToken.post(null, context)
This action has no parameters
Output schema unknown
Use the RequestPermissions API operation to request permissions to execute API operations on a PayPal account holder’s behalf.
paypal.Permissions.RequestPermissions.post(null, context)
This action has no parameters
Output schema unknown
Use the SearchInvoice API operation to search an invoice.
paypal.Invoice.SearchInvoices.post(null, context)
This action has no parameters
Output schema unknown
Use the MarkInvoiceAsPaid API operation to mark an invoice as paid.
paypal.Invoice.MarkInvoiceAsPaid.post(null, context)
This action has no parameters
Output schema unknown
Use the CancelInvoice API operation to cancel an invoice.
paypal.Invoice.CancelInvoice.post(null, context)
This action has no parameters
Output schema unknown
Use the GetInvoiceDetails API operation to get detailed information about an invoice.
paypal.Invoice.GetInvoiceDetails.post(null, context)
This action has no parameters
Output schema unknown
Use the UpdateInvoice API operation to update an invoice.
paypal.Invoice.UpdateInvoice.post(null, context)
This action has no parameters
Output schema unknown
Use the CreateAndSendInvoice API operation to create and send an invoice.
paypal.Invoice.CreateAndSendInvoice.post(null, context)
This action has no parameters
Output schema unknown
Use the SendInvoice API operation to send an invoice to a payer, and notify the payer of the pending invoice.
paypal.Invoice.SendInvoice.post(null, context)
This action has no parameters
Output schema unknown
Use the CreateInvoice API operation to create a new invoice. The call includes merchant, payer, and API caller information, in addition to invoice detail. The response to the call contains an invoice ID and URL.
paypal.Invoice.CreateInvoice.post(null, context)
This action has no parameters
Output schema unknown
The GetUserAgreement API operation lets you retrieve the user agreement for the customer to approve the new PayPal account.
paypal.AdaptiveAccounts.GetUserAgreement.post(null, context)
This action has no parameters
Output schema unknown
The GetVerifiedStatus API operation lets you check if a PayPal account status is verified. A PayPal account gains verified status under a variety of circumstances, such as when an account is linked to a verified funding source. Verified status serves to indicate a trust relationship. For more information about account verified status, refer to PayPal.com.
paypal.AdaptiveAccounts.GetVerifiedStatus.post(null, context)
This action has no parameters
Output schema unknown
The SetFundingSourceConfirmed API operation lets your application set up bank accounts as funding sources for PayPal accounts.
paypal.AdaptiveAccounts.SetFundingSourceConfirmed.post(null, context)
This action has no parameters
Output schema unknown
The AddPaymentCard API operation lets your application set up credit cards as funding sources for PayPal accounts.
paypal.AdaptiveAccounts.AddPaymentCard.post(null, context)
This action has no parameters
Output schema unknown
The AddBankAccount API operation lets your application set up bank accounts as funding sources for PayPal accounts.
paypal.AdaptiveAccounts.AddBankAccount.post(null, context)
This action has no parameters
Output schema unknown
The CreateAccount API operation enables you to create a PayPal account on behalf of a third party.
paypal.AdaptiveAccounts.CreateAccount.post({
"X-PAYPAL-SANDBOX-EMAIL-ADDRESS": null
}, context)
- input
object
Output schema unknown
Use the GetFundingPlans API operation to determine the funding sources that are available for a specified payment, identified by its key, which takes into account the preferences and country of the receiver as well as the payment amount. You must be both the sender of the payment and the caller of this API operation
paypal.AdaptivePayments.GetFundingPlans.post(null, context)
This action has no parameters
Output schema unknown
Use the GetShippingAddresses API operation to obtain the selected shipping address. You must have created the payment or preapproval key that identifies the account holder whose shipping address you want to obtain, or be the primary receiver of the payment or one of the parallel receivers of the payment. The shipping address is available only if it was provided during the embedded payment flow.
paypal.AdaptivePayments.GetShippingAddresses.post(null, context)
This action has no parameters
Output schema unknown
The ExecutePayment API operation lets you execute a payment set up with the Pay API operation with the actionType CREATE. To pay receivers identified in the Pay call, set the pay key from the PayResponse message in the ExecutePaymentRequest message.
paypal.AdaptivePayments.ExecutePayment.post(null, context)
This action has no parameters
Output schema unknown
You use the SetPaymentOptions API operation to specify settings for a payment of the actionType CREATE. This actionType is specified in the PayRequest message.
paypal.AdaptivePayments.SetPaymentOptions.post(null, context)
This action has no parameters
Output schema unknown
You use the GetPaymentOptions API operation to retrieve the payment options passed with the SetPaymentOptionsRequest.
paypal.AdaptivePayments.GetPaymentOptions.post(null, context)
This action has no parameters
Output schema unknown
Use the Refund API operation to refund all or part of a payment. You can specify the amount of the refund and identify the accounts to receive the refund by the payment key or tracking ID, and optionally, by transaction ID or the receivers of the original payment.
paypal.AdaptivePayments.Refund.post(null, context)
This action has no parameters
Output schema unknown
Use the ConvertCurrency API operation to request the current foreign exchange (FX) rate for a specific amount and currency.
paypal.AdaptivePayments.ConvertCurrency.post(null, context)
This action has no parameters
Output schema unknown
Use the CancelPreapproval API operation to handle the canceling of preapprovals. Preapprovals can be canceled regardless of the state they are in, such as active, expired, deactivated, and previously canceled.
paypal.AdaptivePayments.CancelPreapproval.post(null, context)
This action has no parameters
Output schema unknown
Use the PreapprovalDetails API operation to obtain information about an agreement between you and a sender for making payments on the sender’s behalf.
paypal.AdaptivePayments.PreapprovalDetails.post(null, context)
This action has no parameters
Output schema unknown
Use the Preapproval API operation to set up an agreement between yourself and a sender for making payments on the sender’s behalf. You set up a preapprovals for a specific maximum amount over a specific period of time and, optionally, by any of the following constraints: the number of payments, a maximum per-payment amount, a specific day of the week or the month, and whether or not a PIN is required for each payment request.
paypal.AdaptivePayments.Preapproval.post(null, context)
This action has no parameters
Output schema unknown
Use the PaymentDetails API operation to obtain information about a payment. You can identify the payment by your tracking ID, the PayPal transaction ID in an IPN message, or the pay key associated with the payment.
paypal.AdaptivePayments.PaymentDetails.post(null, context)
This action has no parameters
Output schema unknown
Use the Pay API operation to transfer funds from a sender’s PayPal account to one or more receivers’ PayPal accounts. You can use the Pay API operation to make simple payments, chained payments, or parallel payments; these payments can be explicitly approved, preapproved, or implicitly approved.
paypal.AdaptivePayments.Pay.post(null, context)
This action has no parameters
Output schema unknown
This integration has no definitions