The newCreditCardWithNewAddress
actor-chain is used to create a new credit card payment group with an existing address in an order.
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 first name of the customer associated with this billing address. |
| The middle name or initial of the customer associated with this billing address. |
| The last name of the customer associated with this billing address. |
| The first address field of the billing address. |
| The second address field of the billing address. |
| The city of the billing address. |
| The state or province of the billing address. |
| The country of the billing address. |
| The postal code of the billing address. |
| The phone number of the billing address. |
Add Credit Card to New Address in Order Example
curl -L -v -b agent_cookies.txt -H "Content-Type: application/json" -d "{ \"creditCardType\": \"visa\",\"creditCardNumber\": \"4111111111111111\",\"expirationMonth\": \"1\",\"expirationYear\": \"2020\",\"firstName\": \"John\",\"lastName\": \"Smith\",\"address1\": \"1 Main Street\",\"city\": \"cambridge\",\"state\": \"MA\",\"country\": \"USA\",\"postalCode\": \"02146\" }" "http://localhost:8280/rest/model/atg/ commerce/custsvc/order/CreateCreditCardActor/newCreditCardWithNewAddress"