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
Copy file name to clipboardexpand all lines: recipe.md
+8-7
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,9 @@
1
1
# Integrating a custom payment gateway
2
-
Before you get started, make sure you [configured your merchant dashboard](/v3/custom-payment-gateway/merchant-configuration).
2
+
Before you get started, make sure you [configured your merchant dashboard](/v3/custom-payment-gateway/merchant-configuration) and have a [basic understanding](/v3/custom-payment-gateway/technical-reference) of how the Custom payment gateway works
3
3
4
4
## 1. Creating the checkout page
5
-
The first step to integrate a custom payment gateway, is to create the checkout page. This is the page the user will be redirected to when using the custom gateway. We will redirect them to `YOUR_CHECKOUT_URL.com?publicToken=<THE_TOKEN>`.
5
+
The first step to integrate a custom payment gateway, is to create the checkout page. This is the page the user will be redirected to when using the custom gateway. When redirecting to this page, we will add the `publicToken` query param.
In the checkout page, you will want to retrieve information about the order. To do so, you will need to call our payment-session API endpoint. This will allow you to display order information on the checkout page.
8
9
Learn how to [retrieve information about the payment session](/v3/custom-payment-gateway/definition#retrieve-a-payment-session).
@@ -14,9 +15,9 @@ This is how our demo checkout page looks. It uses the [Payment Request API](http
14
15
## 2. Payment methods endpoint
15
16
The second step to integrate a custom payment gateway, is to create the payment methods endpoint. The `publicToken` will be provided in the request body.
16
17
17
-
__Make sure you [validate](/v3/custom-payment-gateway/definition#validate-public-token) the request was made by our API.__
18
+
__Make sure you [validate](/v3/custom-payment-gateway/reference#validate-public-token) the request was made by our API.__
This endpoint is used to validate the Payment with Snipcart when the payment is approved by your payment gateway. It should be called with the payment information. This has to be done server-side since we don't want to leak our __secret__ API Key.
Copy file name to clipboardexpand all lines: technical_definition.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -222,7 +222,7 @@ curl --request POST \
222
222
</div>
223
223
</div>
224
224
225
-
# Your webhooks
225
+
# Webhooks
226
226
Those are the API endpoints you will need to create to integrate your own Payment gateway. Our API will call them with a `publicToken` in the request body.
227
227
__Don't forget to validate the request by using the [`/validate`](#get---validate) endpoint__
0 commit comments