Use payment tokens to reduce the scope of PCI DSS compliance.
A payment token can be made using a different authentication scheme (public key authentication), which enables you to create a payment token directly from the browser. This bypasses the need to send sensitive cardholder info to your servers. We recommend using this with the FramePay library, which helps you integrate a form into this API resource and create payment tokens.
Creates a payment token which can be exchanged into a payment instrument. FramePay is the recommended way to create a payment token because it minimizes PCI DSS compliance. Once a payment token is created, it can only be used once.
A payment token expires upon first use or within 30 minutes of the token creation, whichever comes first.
Payment token resource.
Billing address object. This value is required to perform payments. For payment-card updates, billingAddress can be ignored.
- Mock serverhttps://www.rebilly.com/_mock/catalog/all/tokens
- Sandbox serverhttps://api-sandbox.rebilly.com/organizations/{organizationId}/tokens
- Live serverhttps://api.rebilly.com/organizations/{organizationId}/tokens
- PublishableApiKey
- SecretApiKey
- JWT
- payment-card
- paypal
- ach
- echeck
- digital-wallet
- plaid-account
- Khelocard
- Klarna
- cash
- check
- AdvCash
- Alfa-click
- Alipay
- AstroPay Card
- AstroPay-GO
- BankReferenced
- bank-transfer
- bank-transfer-2
- bank-transfer-3
- bank-transfer-4
- bank-transfer-5
- bank-transfer-6
- bank-transfer-7
- bank-transfer-8
- bank-transfer-9
- Baloto
- Beeline
- Belfius-direct-net
- bitcoin
- Bizum
- Boleto
- cash-deposit
- CASHlib
- CashToCode
- China UnionPay
- Cleo
- CODVoucher
- Conekta-oxxo
- Cupon-de-pagos
- cryptocurrency
- domestic-cards
- ecoPayz
- ecoVoucher
- Efecty
- EPS
- ePay.bg
- eZeeWallet
- FasterPay
- Flexepin
- Giropay
- Gpaysafe
- Google Pay
- iDebit
- iDEAL
- ING-homepay
- INOVAPAY-pin
- INOVAPAY-wallet
- InstaDebit
- instant-bank-transfer
- InstantPayments
- Interac
- Interac-online
- Interac-eTransfer
- invoice
- iWallet
- Jeton
- jpay
- KNOT
- loonie
- Matrix
- MaxiCash
- Megafon
- MiFinity-eWallet
- miscellaneous
- Bancontact
- Bancontact-mobile
- MTS
- MuchBetter
- Multibanco
- Neosurf
- Netbanking
- Neteller
- Nordea-Solo
- OchaPay
- online-bank-transfer
- Onlineueberweisen
- oriental-wallet
- OXXO
- P24
- Pagadito
- PagoEffectivo
- Pagsmile-deposit-express
- Pagsmile-lottery
- PayCash
- Payeer
- PaymentAsia-crypto
- Paymero
- Perfect-money
- Piastrix
- PayTabs
- Paysafecard
- Paysafecash
- Pay4Fun
- Paynote
- PinPay
- phone
- PhonePe
- POLi
- PostFinance-card
- PostFinance-e-finance
- QIWI
- QPay
- QQPay
- rapyd-checkout
- Resurs
- SafetyPay
- SEPA
- Skrill
- Skrill Rapid Transfer
- SMSVoucher
- Sofort
- SparkPay
- swift-dbt
- Tele2
- Terminaly-RF
- ToditoCash-card
- Trustly
- UPayCard
- UPI
- USD-coin
- VCreditos
- VenusPoint
- voucher
- voucher-2
- voucher-3
- voucher-4
- Webmoney
- Webpay
- Webpay-2
- Webpay Card
- WeChat Pay
- XPay-P2P
- XPay-QR
- Yandex-money
- Zotapay
- Zimpler
curl -i -X POST \
https://www.rebilly.com/_mock/catalog/all/tokens \
-H 'Authorization: YOUR_API_KEY_HERE' \
-H 'Content-Type: application/json' \
-d '{
"method": "payment-card",
"paymentInstrument": {
"pan": "string",
"cvv": "string",
"encryptedCvv": "stringstringstringstringstringstringstringstringstringstringstringstringstringstringstringstringstri",
"expMonth": 0,
"expYear": 0
},
"billingAddress": {
"firstName": "Benjamin",
"lastName": "Franklin",
"organization": "Rebilly",
"address": "36 Craven St",
"address2": "string",
"city": "Austin",
"region": "Texas",
"country": "GB",
"postalCode": "WC2N 5NF",
"phoneNumbers": [
{
"label": "main",
"value": "1-512-777-0269",
"primary": true
}
],
"emails": [
{
"label": "main",
"value": "rebilly@example.com",
"primary": true
}
],
"dob": "1980-04-01",
"jobTitle": "CEO"
},
"id": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
"riskMetadata": {
"ipAddress": "93.92.91.90",
"fingerprint": "pIUt3xbgX3l9g3YDiLbx",
"httpHeaders": {
"Content-Type": "application/json",
"Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"
},
"browserData": {
"colorDepth": 24,
"isJavaEnabled": true,
"language": "en-US",
"screenWidth": 1920,
"screenHeight": 1080,
"timeZoneOffset": 300,
"isAdBlockEnabled": true
},
"extraData": {
"kountFraudSessionId": "abcdefg12345abababab123456789012",
"payPalMerchantSessionId": "dd65ratxc5qv15iph3vyoq7l6davuowa",
"threatMetrixSessionId": "dd65ratxc5qv15iph3vyoq7l6davuowadd65ratxc5qv15iph3vyoq7l6davuowa"
}
},
"leadSource": {
"medium": "string",
"source": "string",
"campaign": "string",
"term": "string",
"content": "string",
"affiliate": "string",
"subAffiliate": "string",
"salesAgent": "string",
"clickId": "string",
"path": "string",
"referrer": "https://www.rebilly.com"
}
}'Token created.
Total number of rate limit tokens for this request within a rate limit period. For more information, see Rate limits.
Billing address object. This value is required to perform payments. For payment-card updates, billingAddress can be ignored.
ID of the token.
Date and time when the resource is created. This value is set automatically when the resource is created.
Date and time when the resource is updated. This value is set automatically when the resource is updated.
- payment-card
- paypal
- ach
- echeck
- digital-wallet
- plaid-account
- Khelocard
- Klarna
- cash
- check
- AdvCash
- Alfa-click
- Alipay
- AstroPay Card
- AstroPay-GO
- BankReferenced
- bank-transfer
- bank-transfer-2
- bank-transfer-3
- bank-transfer-4
- bank-transfer-5
- bank-transfer-6
- bank-transfer-7
- bank-transfer-8
- bank-transfer-9
- Baloto
- Beeline
- Belfius-direct-net
- bitcoin
- Bizum
- Boleto
- cash-deposit
- CASHlib
- CashToCode
- China UnionPay
- Cleo
- CODVoucher
- Conekta-oxxo
- Cupon-de-pagos
- cryptocurrency
- domestic-cards
- ecoPayz
- ecoVoucher
- Efecty
- EPS
- ePay.bg
- eZeeWallet
- FasterPay
- Flexepin
- Giropay
- Gpaysafe
- Google Pay
- iDebit
- iDEAL
- ING-homepay
- INOVAPAY-pin
- INOVAPAY-wallet
- InstaDebit
- instant-bank-transfer
- InstantPayments
- Interac
- Interac-online
- Interac-eTransfer
- invoice
- iWallet
- Jeton
- jpay
- KNOT
- loonie
- Matrix
- MaxiCash
- Megafon
- MiFinity-eWallet
- miscellaneous
- Bancontact
- Bancontact-mobile
- MTS
- MuchBetter
- Multibanco
- Neosurf
- Netbanking
- Neteller
- Nordea-Solo
- OchaPay
- online-bank-transfer
- Onlineueberweisen
- oriental-wallet
- OXXO
- P24
- Pagadito
- PagoEffectivo
- Pagsmile-deposit-express
- Pagsmile-lottery
- PayCash
- Payeer
- PaymentAsia-crypto
- Paymero
- Perfect-money
- Piastrix
- PayTabs
- Paysafecard
- Paysafecash
- Pay4Fun
- Paynote
- PinPay
- phone
- PhonePe
- POLi
- PostFinance-card
- PostFinance-e-finance
- QIWI
- QPay
- QQPay
- rapyd-checkout
- Resurs
- SafetyPay
- SEPA
- Skrill
- Skrill Rapid Transfer
- SMSVoucher
- Sofort
- SparkPay
- swift-dbt
- Tele2
- Terminaly-RF
- ToditoCash-card
- Trustly
- UPayCard
- UPI
- USD-coin
- VCreditos
- VenusPoint
- voucher
- voucher-2
- voucher-3
- voucher-4
- Webmoney
- Webpay
- Webpay-2
- Webpay Card
- WeChat Pay
- XPay-P2P
- XPay-QR
- Yandex-money
- Zotapay
- Zimpler
{ "method": "payment-card", "paymentInstrument": { "encryptedCvv": "stringstringstringstringstringstringstringstringstringstringstringstringstringstringstringstringstri", "expMonth": 0, "expYear": 0, "bin": "string", "last4": "string", "brand": "Visa" }, "billingAddress": { "firstName": "Benjamin", "lastName": "Franklin", "organization": "Rebilly", "address": "36 Craven St", "address2": "string", "city": "Austin", "region": "Texas", "country": "GB", "postalCode": "WC2N 5NF", "phoneNumbers": [ … ], "emails": [ … ], "dob": "1980-04-01", "jobTitle": "CEO", "hash": "056ae6d97c788b9e98b049ebafd7b229bf852221" }, "id": "4f6cf35x-2c4y-483z-a0a9-158621f77a21", "isUsed": false, "riskMetadata": { "ipAddress": "93.92.91.90", "fingerprint": "pIUt3xbgX3l9g3YDiLbx", "httpHeaders": { … }, "browserData": { … }, "extraData": { … }, "isProxy": true, "isVpn": true, "isTor": true, "isHosting": true, "hostingName": "string", "isp": "string", "country": "US", "region": "NY", "city": "New York", "latitude": 0.1, "longitude": 0, "postalCode": "string", "timeZone": "America/New_York", "accuracyRadius": 0, "distance": 0, "hasMismatchedBillingAddressCountry": true, "hasMismatchedBankCountry": true, "hasMismatchedTimeZone": true, "hasMismatchedHolderName": true, "hasFakeName": true, "isHighRiskCountry": true, "paymentInstrumentVelocity": 0, "declinedPaymentInstrumentVelocity": 0, "deviceVelocity": 0, "ipVelocity": 0, "emailVelocity": 0, "billingAddressVelocity": 0, "paymentInstrumentApprovedTransactionCount": 0, "score": 0 }, "createdTime": "2019-08-24T14:15:22Z", "updatedTime": "2019-08-24T14:15:22Z", "usageTime": "2019-08-24T14:15:22Z", "expirationTime": "2019-08-24T14:15:22Z", "_links": [ { … } ] }