The newCreditCardWithExistingAddress
actor-chain is used to create a new credit card payment group with an existing address in an order. Note that the getExistingAddress
actor-chain must be run prior to running this call.
Parameter | Description |
---|---|
| Identifies the address to delete. |
| Adds the new credit card number. |
| Adds the new credit card’s expiration month. |
| Adds the new credit card’s expiration year. |
| Identifies the address associated with this new credit card. |
Add Credit Card to Existing Address in Order Example
curl -L -v -b agent_cookies.txt -H "Content-Type: application/json" -d "{ \"addressIndex\": \"0\", \"creditCardType\": \"visa\",\"creditCardNumber\": \"4111111111111111\",\"expirationMonth\": \"1\",\"expirationYear\": \"2020\" }" "http://localhost:8280/rest/model/atg/commerce/custsvc/order/ CreateCreditCardActor/newCreditCardWithExistingAddress"