The getPaymentGroups
actor-chain is used to display the customer’s payment groups.
Parameter | Description |
---|---|
| This parameter will initialize |
Display Customer Payment Groups Example
curl -L -v -b agent_cookies.txt -H "Content-Type: application/json" –d "{ \"init\": \"true\"}" "http://localhost:8280/rest/model/atg/commerce/custsvc/ order/PaymentGroupActor/getPaymentGroups"
The server response may be similar to the following:
{"paymentGroups": {"visa - 1111": { "amount": 0, "currencyCode": null, "expirationMonth": "1", "expirationYear": "2022", "paymentId": "pg110012", "creditCardNumber": "1111", "expirationDayOfMonth": null, "billingAddress": { "lastName": "Smith", "postalCode": "02046", "phoneNumber": "6176378687", "email": "jsmith@example.com", "state": "MA", "address1": "One Main Street", "address2": null, "firstName": "John", "city": "Cambridge", "country": "USA" }, "creditCardType": "Visa", "orderId": null }}}