The getPaymentGroups
actor-chain is used to display the Billing page.
Parameter | Description |
---|---|
| This Boolean parameter, if |
| This parameter will look for all Commerce Identifier Payment Info (CIPI), and returns information from all payment groups. |
| Identifies the payment group types, such as |
Display Billing Page Example
curl -L -v -b customer_cookies.txt -H "Content-Type: application/json" –d "{ \"init\" : \"true\", \"paymentGroupTypes\" : \"creditCard,storeCredit\"}" "http://localhost:8280/rest/model/atg/commerce/order/purchase/PaymentGroupActor/ getPaymentGroups"
The server response may be similar to the following:
{"paymentGroups": {"Visa": { "amount": 109.2, "currencyCode": "USD", "expirationMonth": "1", "expirationYear": "2014", "paymentId": "pg140002", "creditCardNumber": "1111", "expirationDayOfMonth": null, "billingAddress": { "lastName": "Smith", "postalCode": "02046", "phoneNumber": "6176378687", "email": "jsmith@example.com", "state": "MA", "address1": "1 Main St", "address2": "", "firstName": "John", "city": "Cambridge", "country": "USA" }, "creditCardType": "Visa", "orderId": null }}}