The UpdateCreditCardActor is used to edit an existing credit card within an order. The path to this actor is: /atg/commerce/order/purchase/UpdateCreditCardActor.
This actor contains the updateCreditCard actor-chain:
Parameter | Description |
|---|---|
| The nickname of the credit card to update. |
| The type of credit card to update. |
| The credit card number to update. |
| The month that the credit card expires. |
| The year that the credit card expires. |
| Used to generate a new nickname for the credit card. |
| 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. |
Update Credit Card in Order Example
curl -L -v -b agent_cookies.txt -H "Content-Type: application/json" -d "{
"nickname" : \"visa 1111\", "creditCardType" : "Visa", "creditCardNumber" :
"4111111111111111", "expirationMonth" : "06","expirationYear" : "2017",
"firstName":\"Charles\", "middleName":\"J\", "lastName":\"Smythe\",
"address1":\"123 Main Street\", "address2":\"Suite 100\", "city":\"Cambridge\",
"state":\"MA\", "country":\"USA\", "postalCode":\"02146\","phoneNumber":
\"617-637-8687\" }" "http://localhost:8280/rest/model/atg/commerce/
custsvc/order/UpdateCreditCardActor/updateCreditCard"
