Changes

Jump to navigation Jump to search

API V2.0

1,327 bytes added, 30 May
== Channels - Stripe ==
 
To use the Stripe endpoints, the process is basically the same as creating a normal Strip Checkout session, except by doing it via our API function it connects the payment to the booking.
 
Use our API to create the Stripe session and then follow Stripes instructions and use the Stripe API or widgets to create a payment checkout for your page.
 
The Stripe checkout session will create a Stripe checkout page for receiving payments into the properties Stripe account.
 
Pass the line_items, success_url and cancel_url in the format required by the Stripe API to create a checkout session.
 
The line_items format is defined in the Stripe documentation
 
If the booking already exists, pass it's booking ID as "bookId" and any payments to this checkout session will be added to the bookings invoice.
 
Setting "capture":false will authorize the amount but not collect the funds.
 
The Stripe session will be returned, the session id can be used to create the Stripe checkout in your App.
 
When initializing Stripe in your App, use this pk_live key and the stripe_account value (acct_) from the session response as follows:
 
<code>
var stripe = Stripe('pk_live_zWSW2ykzZoq4mYcKg9c8jmHS', {
stripeAccount: 'acct_stripe_acccont-value-from-response'
});
</code>
 
See here for more information https://stripe.com/docs/payments/checkout
 
=== POST /channels​/stripe ===
Get charges for a booking from Stripe.
 
= Webhooks =
16

edits

Navigation menu