Created
March 21, 2018 15:32
-
-
Save vernondegoede/d3cac710d1d376da8318bc736172b3c6 to your computer and use it in GitHub Desktop.
Add payment details to order and transition order state to complete
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -X "PUT" "/api/v1/checkouts/R597974478" \ | |
-H 'Content-Type: application/json; charset=utf-8' \ | |
-H 'X-Spree-Token: 0123456789' \ | |
-d $'{ | |
"order": { | |
"payments_attributes": [ | |
{ | |
"payment_method_id": "1" | |
} | |
] | |
}, | |
"payment_source": { | |
"1": { | |
"payment_method_name": "ideal", | |
"issuer": "ideal_TESTNL99" | |
} | |
} | |
}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment