Sign in

Set payment information

documented

Set payment information for the current cart.

POST /rest/{store_code}/V1/carts/mine/set-payment-informationCheckoutno 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://{{MAGENTO_HOST}}/rest/{{$store_code}}/V1/carts/mine/set-payment-information" \
  -X POST \
  -H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{"paymentMethod": {"method": "stripe_payments", "additional_data": {"cc_save": {{$cc_save}}, "cc_stripejs_token": "{{$cc_stripejs_token}}"}}, "billing_address": {"email": "{{$email}}", "region": "{{$region}}", "region_id": {{$region_id}}, "region_code": "{{$region_code}}", "country_id": "{{$country_id}}", "street": ["{{$street1}}", "{{$street2}}"], "postcode": "{{$postcode}}", "city": "{{$city}}", "firstname": "{{$firstname}}", "lastname": "{{$lastname}}", "telephone": "{{$telephone}}"}}'
Set payment information · Adobe Commerce (Magento) · OpenIntegrations