Pass data to Payment to create charges:
Add an amount, in cents:
Choose a supported currency:
Add a URL encoded description for the charge:
Alternatively, create a line-item Stripe invoice:
Pass a price id and quantity pair:
Or pass along multiple price ids and quantities:
Additionally, you can apply a coupon:
Add an URL encoded name for the customer:
Provide an email address for a receipt:
Upon a successful transaction, the Payment app will return to your app.
In addition to iOS automatically dropping you back to your website, we'll also return a few bits of information including:
"chargeId": "pi_xxxxxx" // from Stripe
In the event of an error, you may receive a message formatted as:
"message": "Generic error message"