Transaction.finalizeCustomerAction
Web Session Object
Transaction Object
Token Object
Season Set Object
Refund Object
RatePlan Object
Product Object
Payment Provider Object
Payment Method Object
NameValuePair Object
GiftCard Object
Entitlement Object
Chargeback Object
Campaign Object
BillingPlan Object
AutoBill Object
Address Object
Activity Object
Account Object
Transaction.finalizeCustomerAction
The finalizeCustomerAction method completes the authorization of a Hosted Page payment method validation transaction. Use this method only when working with a Transaction that is paid for with this payment method.
Note The customer’s Account must exist before calling finalizeCustomerAction.
Input
srd: sparse response description, a SOAP string (which must be a JSON object), in which you specify the elements you want returned.This parameter enables the calling system to constrain a method call to return only components you specify. This gives you greater control over returned content, and improves response time within the Vindicia platform by reducing the processing needed for the call.
Some fields are required, either practically or in the WSDL, and will be returned regardless of the srd. A null srd returns the complete response.
transactionVid: Vindicia’s ID for the Transaction generated for a HostedPage payment method. This will be available to you through the URL when your customer is redirected to your site by the payment provider.
Output
return: an object of type Return that indicates the success or failure of the call.
transaction: the resultant Transaction object after finalization. It contains the updated status of the transaction.
Returns
This method returns the codes listed in Standard Return Codes.
Example
// Create a new Transaction with payment_product = 702
// The Transaction will be created with status: "New."
$tx = new_transaction($identifier, "702");
// Call authCapture on this transaction.
// Note: There is no support for the auth call.
// By definition, an auth request for Payment Methods
// aggregated through Hosted Pages will result in
// the transaction being captured.
// The Transaction status will be changed to
// "PendingCustomerAction" until your customer completes
// the payment on the hosted pages.
$rc = $trans->authCapture($trans, 0, 1, 1);
// Set the status of the Transaction to “AuthorizedPending”
// in case of success.
$rc = $trans->finalizeCustomerAction($VID);
For Users
Learn More