Setup
Follow the Stripe setup instructions before configuring Onelink. After setting up your Stripe account, make sure card payments and Stripe Link are enabled in Stripe. For shared APM credentials and payment IDs, see Stripe APM credentials.Capabilities
Supported countries
Supported currencies
Webhooks
Onelink confirms the payment client-side, so webhooks must be configured to keep the status of transactions in sync. Webhooks are configured in the Stripe Dashboard within Developer Settings under Webhooks. The Onelink connector relies on the following Stripe webhooks:payment_intent.canceledcharge.expiredcharge.refund.updatedcharge.refundedpayment_intent.succeededpayment_intent.amount_capturable_updatedpayment_intent.payment_failed
Integration
The default integration for Onelink uses a redirect to a payments page hosted by Gr4vy. The same surface also supports a direct integration, where you render the Payment Element on your own web, iOS, or Android page. Billing details (name, email, phone, and address) sent on the transaction pre-fill the Payment Element and let Stripe Link recognize a returning buyer by email.Redirect integration
Start by creating a new transaction with the following required fields.payment_method.approval_url and the status is set to buyer_approval_pending.
approval_url (open in a browser or web view), where they can complete the payment. Once the buyer completes the payment, the transaction progresses to an authorization_succeeded or capture_succeeded state.
Direct integration
If you intend to use your own hosted page, you can include anintegration_client parameter set to web, ios or android when creating a new transaction.
session_token. You use this token with the session endpoint to retrieve the session data for the transaction and build a custom page that mounts the Stripe Payment Element.
publishableKey (and stripeAccount when using Stripe Connect), mount the Payment Element from the clientSecret, and confirm the payment client-side. The billingDetails pre-fill the element when present.
Mobile redirect integration completion
On mobile integrations you should send a GET request to thedefault_completion_url provided in the session response.