The applyDefaultPaymentGroup actor-chain is used to apply the default payment group to the order and continues on to order review.
Parameters: None
Apply Default Payment Group Example
curl -L -v -b customer_cookies.txt -H "Content-Type: application/json" "http://localhost:8280/rest/model/atg/commerce/order/purchase/PaymentGroupActor/ applyDefaultPaymentGroup"
The server response may be similar to the following:
{"paymentGroups": {"visa - 1111": {{"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": "1 Main Street",
"address2": null,
"firstName": "John",
"city": "Cambridge",
"country": "USA"
},
"creditCardType": "Visa",
"orderId": null
}}}
"orderId": null
