IMPORTANT
Stripe have very small requirements for taking a payment, however it is best to provide as much information as possible so that the payment goes through successfully.Test Card Details
Card Number:
4242424242424242Expiry Date:
0130CVV:
123Stripe have more test cards which can be found here.
Required Parameters
transactionType
'SALE' is supported which will take a payment from the requested card.
'TOKEN' is supported which is for tokenising the card details for use later.
'TOKENSALE' is supported for taking a payment with an existing token.
apiKey
This is provided by Stripe.SALE Required Parameters
amount
Always has to be a whole number, for example £2 is 200. This is true if your exponent is set to '2' for GBPcurrency
Must be provided as 3 letters for example: 'GBP'.SALE Optional Parameters
shippingName
Full name of the receiver.shippingLine1
First line of address for the receiver.shippingLine2
Second line of address for the receiver.shippingCity
City for the receiver.shippingState
State for the receiver.shippingPostalCode
Postcode for the receiver.shippingCountry
Country for the receiver.description
Description for this payment.statementDescriptorSuffix
How will it appear on the card holders bank statement.Stripe may support other parameters not currently integrated into the PCI platform, more information can be found here, if you would like any integrated please contact us.
TOKEN Required Parameters
No extra parameters are required by the TOKEN transactionType.
TOKENSALE Required Parameters
paymentMethod
Id of the payment method to use.amount
Always has to be a whole number, for example £2 is 200. This is true if your exponent is set to '2' for GBPcurrency
Must be provided as 3 letters for example: 'GBP'.TOKEN or TOKENSALE Optional Parameters
billingName
Full name of the card owner.billingLine1
First line of address for the card owner.billingLine2
Second line of address for the card owner.billingCity
City for the card owner.billingState
State for the card owner.billingPostalCode
Postcode for the card owner.billingCountry
Country for the card owner.Stripe may support other parameters not currently integrated into the PCI platform, more information can be found here, if you would like any integrated please contact us.
Example Request
curl --location 'https://api.revopci.co.uk/' \
--header 'X-Session;' \
--header 'X-Auth;' \
--header 'Content-Type: application/json' \
--data '{
"provider": "stripe",
"mode": "test",
"payment": "payment",
"parameters":
{
"transactionType": "SALE" or "TOKEN" or "TOKENSALE",
"apiKey": "00000000-0000-0000-0000-000000000000"
//SALE
"amount": "200",
"currency": "GBP",
"shippingName": "Test Test",
"shippingLine1": "123 Test Street",
"shippingLine2": "",
"shippingCity": "Test",
"shippingState": "Test",
"shippingPostalCode": "SANTA1",
"shippingCountry": "Test",
"description": "This is a test payment",
"statementDescriptorSuffix": "TEST002"
//TOKEN
"billingName": "Test Test",
"billingLine1": "123 Test Street",
"billingLine2": "",
"billingCity": "Test",
"billingState": "Test",
"billingPostalCode": "SANTA1",
"billingCountry": "Test",
//TOKENSALE
"paymentMethod": "00000000-0000-0000-0000-000000000000",
"amount": "200",
"currency": "GBP",
"billingName": "Test Test",
"billingLine1": "123 Test Street",
"billingLine2": "",
"billingCity": "Test",
"billingState": "Test",
"billingPostalCode": "SANTA1",
"billingCountry": "Test",
}
}'