Sprintcheckout
Ask or search…
K

Get paid

There are currently two ways to create payment sessions. Via API integration and via no code Woocommerce payment plugin.
The payment flow is the following:

Get API key

On this section, get the API key you will need to call the payment_session endpoint.

Create payment sessions

There are currently two ways to create payment sessions. Via API integration and via no code Woocommerce payment plugin.

API integration

Using your API key, you can create payment sessions on any ecommerce checkout.
Base Url
https://api.sprintcheckout.com
Authentication
API Key
Key
X-SC-ApiKey
Value
e.g. dda87384-cb3f-40ee-a333-e51a0b336dc0
post
/checkout/v2/payment_session
When a customer purchases something from you, you can create a hosted payment page session providing us with the details of the purchase
Examples of API calls can be found in the API Reference, including a sample request using Javascript and Axios as shown below.
Request
1
import axios from 'axios';
2
3
const options = {
4
method: 'POST',
5
url: 'https://api.sprintcheckout.com/checkout/v2/payment_session',
6
headers: {accept: 'application/json', 'content-type': 'application/json'},
7
data: {
8
paymentSession: {
9
orderId: '0023',
10
amount: 100.5,
11
currency: 'USD',
12
successUrl: 'https://alice-flowers.com/checkout',
13
failUrl: 'https://alice-flowers.com/payment-error',
14
cancelUrl: 'https://alice-flowers.com/checkout'
15
}
16
}
17
};
18
19
axios
20
.request(options)
21
.then(function (response) {
22
console.log(response.data);
23
})
24
.catch(function (error) {
25
console.error(error);
26
});