The CreateCreditCardActor is used to create a new credit card when working in the Billing page. The path to this actor is: /atg/commerce/order/purchase/CreateCreditCardActor.
This actor contains the newCreditCard actor-chain:
Parameter | Description |
|---|---|
| The type of credit card to add. |
| The credit card number. |
| The month that the credit card expires. |
| The year that the credit card expires. |
| Used to generate a nickname for the credit card. This parameter is always set to |
| The first name on the credit card. |
| The middle name or initial on the credit card. |
| The last name on the credit card. |
| The first address field on the credit card. |
| The second address field on the credit card. |
| The city on the credit card. |
| The state on the credit card. |
| The country on the credit card. |
| The postal code on the credit card. |
| A phone number associated with the credit card. |
Create New Credit Card Example
curl -L -v -b customer_cookies.txt -H "Content-Type: application/json" –d
"{ \"creditCardType\": \"visa\",\"creditCardNumber\":
\"4111111111111111\",\"expirationMonth\": \"1\",\"expirationYear\":
\"2020\",\"firstName\": \"John\",\"lastName\": \"Doe\",\"address1\":
\"1 Main St.\",\"city\": \"Cambridge\",\"state\": \"MA\",\"country\":
\"USA\",\"postalCode\": \"02146\" }" "http://localhost:8280/rest/model/atg/
commerce/order/purchase/CreateCreditCardActor/newCreditCard"
