The newCreditCardWithNewAddress actor-chain is used to create a new credit card payment group with an existing address in an order.

Parameter

Description

creditCardType

Identifies the address to delete.

creditCardNumber

Adds the new credit card number.

expirationMonth

Adds the new credit card’s expiration month.

expirationYear

Adds the new credit card’s expiration year.

firstName

Identifies the first name of the customer associated with this billing address.

middleName

The middle name or initial of the customer associated with this billing address.

lastName

The last name of the customer associated with this billing address.

address1

The first address field of the billing address.

address2

The second address field of the billing address.

city

The city of the billing address.

state

The state or province of the billing address.

country

The country of the billing address.

postalCode

The postal code of the billing address.

phoneNumber

The phone number of the billing address.

Add Credit Card to New Address in Order Example
curl -L -v -b agent_cookies.txt -H "Content-Type: application/json" -d "{
 \"creditCardType\": \"visa\",\"creditCardNumber\":
\"4111111111111111\",\"expirationMonth\": \"1\",\"expirationYear\":
\"2020\",\"firstName\": \"John\",\"lastName\": \"Smith\",\"address1\":
\"1 Main Street\",\"city\": \"cambridge\",\"state\": \"MA\",\"country\":
\"USA\",\"postalCode\": \"02146\" }" "http://localhost:8280/rest/model/atg/
commerce/custsvc/order/CreateCreditCardActor/newCreditCardWithNewAddress"

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