Create payment
documentedCreates a new payment for the current checkout.
POST /api/v2/storefront/checkout/create_paymentCheckoutno 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://demo.spreecommerce.org/api/v2/storefront/checkout/create_payment" \
-X POST \
-H "Content-Type: application/vnd.api+json" \
-H "Accept: application/vnd.api+json" \
-H "X-Spree-Order-Token: {{SPREECOMMERCE_API_KEY}}" \
-d '{"payment_method_id": "{{$payment_method_id}}", "source_attributes": { "gateway_payment_profile_id": "{{$gateway_payment_profile_id}}", "cc_type": "{{$cc_type}}", "last_digits": "{{$last_digits}}", "month": {{$month}}, "year": {{$year}}, "name": "{{$name}}" } }'