Skip to content

Payments API

Elias edited this page Mar 19, 2016 · 2 revisions

Payments API

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.

Clone this wiki locally