Sign in

Create payment token

documented

Create a payment token.

POST /3dCartWebAPI/v1/PaymentTokensPayment Tokensno implementation yet0 runs
No implementation yet. Run it to have the agent write one, or open a pull request with your own.

Seed example (keychains curl)

npx -y keychains@latest curl "https://apirest.3dcart.com/3dCartWebAPI/v1/PaymentTokens" \
  -X POST \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -H "SecureURL: {{$secure_url}}" \
  -H "PrivateKey: {{SHIFT4SHOP_SECRET}}" \
  -H "Token: {{SHIFT4SHOP_TOKEN}}" \
  -d '{"requestType":"PaymentCardPaymentTokenizationRequest","paymentCard":{"number":"{{$card_number}}","expiryDate":{"month":"{{$exp_month}}","year":"{{$exp_year}}"},"securityCode":"{{$cvv}}"},"createToken":{"paymentTokens":[{"value":"{{$token_value}}","reusable":true,"declineDuplicates":false,"paymentCard":{"number":"{{$card_number}}","expiryDate":{"month":"{{$exp_month}}","year":"{{$exp_year}}"},"securityCode":"{{$cvv}}"}]} }'
Create payment token · Shift4Shop · OpenIntegrations