$version
$version :
API version
Implements Dalenys payment API
$renderer : \Dalenys_Api_Renderer_Renderable
$hash : \Dalenys_Api_Hash_Hashable
__construct(string $identifier, string $password, \Dalenys_Api_Renderer_Renderable $renderer, \Dalenys_Api_Hash_Hashable $hash)
Instanciate
| string | $identifier | The Dalenys identifier |
| string | $password | The Dalenys password |
| \Dalenys_Api_Renderer_Renderable | $renderer | How to render the form |
| \Dalenys_Api_Hash_Hashable | $hash |
buildAuthorizationFormButton(integer|array $amount, string $orderId, string $clientIdentifier, string $description, array $htmlOptions = array(), array $options = array()) : string
Build authorization form and submit button
Return the authorization form and all hidden input configuring the dalenys transaction.
| integer|array | $amount | The transaction amount in cents. If $amount is an array it will be used as NTime transaction (fragmented payment). In this case, the array should be formatted this way:
The first entry's date should be the current date (today) |
| string | $orderId | The orderid (should be unique by transaction, but no unicity check are performed) |
| string | $clientIdentifier | The client identifier |
| string | $description | The transaction description |
| array | $htmlOptions | An array of HTML attributes to add to the submit or form button (allowing to change name, style, class attribute etc.). Example: |
| array | $options | Others dalenys options. See Dalenys documentation for more information (3DS, CREATEALIAS, etc.) |
The HTML output to display
buildPaymentFormButton(integer|array $amount, string $orderId, string $clientIdentifier, string $description, array $htmlOptions = array(), array $options = array()) : string
Build payment form and submit button
Return the payment form and all hidden input configuring the dalenys transaction.
| integer|array | $amount | The transaction amount in cents. If $amount is an array it will be used as NTime transaction (fragmented payment). In this case, the array should be formatted this way:
The first entry's date should be the current date (today) |
| string | $orderId | The orderid (should be unique by transaction, but no unicity check are performed) |
| string | $clientIdentifier | The client identifier |
| string | $description | The transaction description |
| array | $htmlOptions | An array of HTML attributes to add to the submit or form button (allowing to change name, style, class attribute etc.). Example: |
| array | $options | Others dalenys options. See Dalenys documentation for more information (3DS, CREATEALIAS, etc.) |
The HTML output to display
buildProcessButton(string $operationType, string $orderId, string $clientIdentifier, string $description, array $htmlOptions = array(), array $options = array()) : string
Return process button html
| string | $operationType | |
| string | $orderId | |
| string | $clientIdentifier | |
| string | $description | |
| array | $htmlOptions | |
| array | $options |