Purchase via gateway
documentedExecute a purchase through the specified gateway.
POST /v1/gateways/{gateway_token}/purchase.{format}Gatewaysno implementation yet0 runsNo 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://core.spreedly.com/v1/gateways/{{$gateway_token}}/purchase.{{$format}}" \
-X POST \
-u "{{SPREEDLY_API_KEY}}:{{SPREEDLY_SECRET}}" \
-H "Content-Type: application/{{$format}}" \
-H "Accept: application/{{$format}}" \
-d '{"transaction": {"payment_method_token": "{{$payment_method_token}}", "amount": {{$amount}}, "currency_code": "{{$currency_code}}"}}'