You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All backend payments-related functionality lives inside /lib/payPlugin.js.
Send the following data in a POST request to /pay to send a payment:
{
amount: <Number or String> Amount of transaction in smallest currency unit (e.g. pence/cents),
currency: <String> 3-letter ISO currency code,
source: <String> ID corresponding to the source of funds (obtained from Stripe.js),
description: <String> A description of the transaction
}
See the CheckoutForm component for how to get the source token.