The getPaymentGroups actor-chain is used to display the Billing page.

Parameter

Description

init

This Boolean parameter, if true, will clear payment group information and the Commerce Identifier Payment Info (CIPI) , and initialize payment groups and the Commerce Item Shipping Info (CISI).

createAllPaymentInfos

This parameter will look for all Commerce Identifier Payment Info (CIPI), and returns information from all payment groups.

paymentGroupTypes

Identifies the payment group types, such as creditCard or storeCredit.

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
}}}

Copyright © 1997, 2013 Oracle and/or its affiliates. All rights reserved. Legal Notices