MerchantCcForm
Merchant Credit Card custom form interface. Defines all methods that a credit card form payment gateway must implement.
Modifiying the form can allow the gateway to add reference_id and client_reference_id fields or javascript to make calls to a gateway's JS API
Table of Contents
Methods
| buildCcForm() | Returns all HTML markup required to render credit card payment form |
| buildPaymentConfirmation() | Gets an Html form to use as an addition to the regular payment confirmation pages in Blesta |
Methods
buildCcForm()
Returns all HTML markup required to render credit card payment form
public
buildCcForm() : mixed
Return values
mixed —A string of HTML markup required to render an credit card payment form, or an array of HTML markup
buildPaymentConfirmation()
Gets an Html form to use as an addition to the regular payment confirmation pages in Blesta
public
buildPaymentConfirmation(string $reference_id, string $transaction_id, int $amount) : string
Parameters
- $reference_id : string
-
The reference ID of an entity related to the remote transaction
- $transaction_id : string
-
The reference ID of the remote transaction
- $amount : int
-
The amount of the remote transaction
Return values
string —The Html, if any, for confirming payments