|
EPG PHP SDK
|
Abstract class representing the interface for setting parameters required for payment requests. More...
Inheritance diagram for ParametersInterface:Public Member Functions | |
| __construct () | |
| setMerchantTransactionId (string $merchantTransactionId) | |
| Sets the merchant transaction ID. | |
| setAmount (float $amount) | |
| Sets the amount for the transaction. | |
| getAmount () | |
| setProductId (int $productId) | |
| setCurrency (CurrencyCodes $currency) | |
| Sets the currency code for the transaction. | |
| setCountry (CountryCodes $country) | |
| Sets the country code. | |
| setApiVersion (int $version) | |
| Sets the Api Version. | |
| setCustomerId (string $customerId) | |
| Sets the customer ID. | |
| setPaymentSolution (PaymentSolutions $paymentSolution) | |
| Sets the payment solution for the transaction. | |
| setLanguage (LanguageCodes $language) | |
| Sets the language for the payment interface. | |
| setType (Types $type) | |
| Sets the transaction type. | |
| isUrl (string $string) | |
| setStatusURL (string $statusURL) | |
| Sets the URL to which the transaction status will be sent. | |
| setAwaitingURL (string $awaitingURL) | |
| Sets the URL for redirecting the user during the payment process if additional actions are required. | |
| setSuccessURL (string $successURL) | |
| Sets the URL to which the customer will be redirected after a successful transaction. | |
| setErrorURL (string $errorURL) | |
| Sets the URL to which the customer will be redirected after a transaction error. | |
| setCancelURL (string $cancelURL) | |
| Sets the URL to which the customer will be redirected if they cancel the transaction. | |
| setCustomerEmail (string $customerEmail) | |
| Sets the customer's email address. | |
| setCustomerNationalId (string $customerNationalId) | |
| Sets the national ID of the customer. | |
| setCustomerCountry (CountryCodes $customerCountry) | |
| Sets the country code of the customer. | |
| setDob (string $dob) | |
| Sets the date of birth of the customer. | |
| setFirstName (string $firstName) | |
| Sets the first name of the customer. | |
| setLastName (string $lastName) | |
| Sets the last name of the customer. | |
| setChName (string $chName) | |
| Sets the card holder's name. | |
| setReferenceId (string $referenceId) | |
| Sets the Reference Id. | |
| setDescription (string $description) | |
| Sets Description. | |
| setChallengeInd (string $challengeInd) | |
| Sets Challenge Ind. | |
| setShowRememberMe (bool $showRememberMe) | |
| Sets Show Remember Me. | |
| setMerchantParams (array $params) | |
| Sets Merchant Params. | |
| setTransactionId (int $transactionId) | |
| Sets the transaction ID. | |
| setForceTokenRequest (bool $forceTokenRequest) | |
| Sets the force token request flag. | |
| setAnonymousCustomer (bool $anonymousCustomer) | |
| Sets the anonymous customer flag. | |
| setPrepayToken (string $prepayToken) | |
| Sets the prepayment token. | |
| setAdditionalParameters (string $key, mixed $value) | |
| Sets additional parameters for the transaction. | |
| addAcceptJsonHeader (bool $json) | |
| Adds a header to accept JSON responses. | |
| getOtherConfigurations () | |
| Retrieves all other configurations set for the transaction. | |
| isValidEmail (string $email) | |
| Validates if the provided string is a valid email address. | |
| validate () | |
Protected Attributes | |
| array | $otherConfigurations = [] |
| bool | $isSettingPaysolExtendedData = false |
Abstract class representing the interface for setting parameters required for payment requests.
This class provides methods to set various configurations and parameters needed for payment processing.
| __construct | ( | ) |
Reimplemented in QuixParameters.
| addAcceptJsonHeader | ( | bool | $json | ) |
Adds a header to accept JSON responses.
| bool | $json | A boolean flag to indicate if JSON responses are to be accepted. |
| getAmount | ( | ) |
| getOtherConfigurations | ( | ) |
Retrieves all other configurations set for the transaction.
| isUrl | ( | string | $string | ) |
| isValidEmail | ( | string | ) |
Validates if the provided string is a valid email address.
| string | The email address to validate. |
| setAdditionalParameters | ( | string | $key, |
| mixed | $value | ||
| ) |
Sets additional parameters for the transaction.
| string | $key | The key for the additional parameter. |
| mixed | $value | The value of the additional parameter. |
| setAmount | ( | float | $amount | ) |
Sets the amount for the transaction.
| float | $amount | The transaction amount. |
| InvalidFieldException | if the provided amount is not a valid number. |
| setAnonymousCustomer | ( | bool | $anonymousCustomer | ) |
Sets the anonymous customer flag.
| mixed | $anonymousCustomer | The anonymous customer flag, should be 'true' or 'false' as a string. |
| InvalidFieldException | if the provided value is not a valid boolean representation. |
| setApiVersion | ( | int | $version | ) |
Sets the Api Version.
| int | $version |
| InvalidFieldException | if the provided country code is not valid. |
| setAwaitingURL | ( | string | $awaitingURL | ) |
Sets the URL for redirecting the user during the payment process if additional actions are required.
| string | $awaitingURL | The URL for redirecting during awaiting actions. |
| InvalidFieldException | if the provided URL is not valid. |
| setCancelURL | ( | string | $cancelURL | ) |
Sets the URL to which the customer will be redirected if they cancel the transaction.
| string | $cancelURL | The cancel URL for post-transaction redirection. |
| InvalidFieldException | if the provided URL is not valid. |
| setChallengeInd | ( | string | $challengeInd | ) |
Sets Challenge Ind.
| string | $referenceId | Preference on the type of 3DSv2 authentication to request from the client. |
| setChName | ( | string | $chName | ) |
Sets the card holder's name.
| string | $chName | The name of the card holder. |
| setCountry | ( | CountryCodes | $country | ) |
Sets the country code.
| CountryCodes | $country | The country code (ISO 3166-1 alpha-2 format). |
| InvalidFieldException | if the provided country code is not valid. |
| setCurrency | ( | CurrencyCodes | $currency | ) |
Sets the currency code for the transaction.
| CurrencyCodes | $currency | The currency code (e.g., 'EUR', 'USD'). |
| InvalidFieldException | if the provided currency code is not valid. |
| setCustomerCountry | ( | CountryCodes | $customerCountry | ) |
Sets the country code of the customer.
| CountryCodes | $customerCountry | The ISO country code of the customer. |
| InvalidFieldException | if the provided country code is not valid. |
| setCustomerEmail | ( | string | $customerEmail | ) |
Sets the customer's email address.
| string | $customerEmail | The email address of the customer. |
| InvalidFieldException | if the provided email address is not valid. |
| setCustomerId | ( | string | $customerId | ) |
Sets the customer ID.
| string | $customerId | The customer identifier in the merchant's platform. |
| InvalidFieldException | if the provided ID is not an integer. |
| setCustomerNationalId | ( | string | $customerNationalId | ) |
Sets the national ID of the customer.
| string | $customerNationalId | The national ID of the customer. |
| setDescription | ( | string | $description | ) |
Sets Description.
| string | $referenceId | Description of the transaction. Preference on the type of 3DSv2 authentication to request from the client. It does not affect the transaction, it serves so that you can make a better identification. |
| setDob | ( | string | $dob | ) |
Sets the date of birth of the customer.
| string | $dob | The date of birth in the format d-m-Y. |
| InvalidFieldException | if the provided date is not in the valid format. |
| setErrorURL | ( | string | $errorURL | ) |
Sets the URL to which the customer will be redirected after a transaction error.
| string | $errorURL | The error URL for post-transaction redirection. |
| InvalidFieldException | if the provided URL is not valid. |
| setFirstName | ( | string | $firstName | ) |
Sets the first name of the customer.
| string | $firstName | The first name of the customer. |
| setForceTokenRequest | ( | bool | $forceTokenRequest | ) |
Sets the force token request flag.
| mixed | $forceTokenRequest | The force token request flag, should be true or false. |
| InvalidFieldException | if the provided value is not a valid boolean representation. |
| setLanguage | ( | LanguageCodes | $language | ) |
Sets the language for the payment interface.
| LanguageCodes | $language | The language code (e.g., 'EN', 'ES'). |
| InvalidFieldException | if the provided language code is not valid. |
| setLastName | ( | string | $lastName | ) |
Sets the last name of the customer.
| string | $lastName | The last name of the customer. |
| setMerchantParams | ( | array | $params | ) |
Sets Merchant Params.
| array | $params | Parameters that are sent to modify the configuration of the trade or the processing of a transaction. They are received back inside the label Does not support special characters. |
| setMerchantTransactionId | ( | string | $merchantTransactionId | ) |
Sets the merchant transaction ID.
| string | $merchantTransactionId | The transaction identifier in the merchant's platform. |
| InvalidFieldException | if the provided ID is not an integer. |
| setPaymentSolution | ( | PaymentSolutions | $paymentSolution | ) |
Sets the payment solution for the transaction.
| PaymentSolutions | $paymentSolution | The payment solution name (e.g., 'creditcards', 'paypal'). |
| InvalidFieldException | if the provided payment solution is not valid. |
| setPrepayToken | ( | string | $prepayToken | ) |
Sets the prepayment token.
| string | $prepayToken | The prepayment token to be used for the transaction. |
| setProductId | ( | int | $productId | ) |
| setReferenceId | ( | string | $referenceId | ) |
Sets the Reference Id.
| string | $referenceId | Variable reference for businesses that need FB500 reconciliation files.. |
| setShowRememberMe | ( | bool | $showRememberMe | ) |
Sets Show Remember Me.
| bool | $showRememberMe | if the value is true the remember me box will be visible to the user if false it will be hidden (true by default ). |
| setStatusURL | ( | string | $statusURL | ) |
Sets the URL to which the transaction status will be sent.
| string | $statusURL | The URL for receiving transaction status updates. |
| InvalidFieldException | if the provided URL is not valid. |
| setSuccessURL | ( | string | $successURL | ) |
Sets the URL to which the customer will be redirected after a successful transaction.
| string | $successURL | The success URL for post-transaction redirection. |
| InvalidFieldException | if the provided URL is not valid. |
| setTransactionId | ( | int | $transactionId | ) |
Sets the transaction ID.
| int | $transactionId | The transaction ID. |
| InvalidFieldException | if the transaction ID is not an integer. |
| setType | ( | Types | $type | ) |
Sets the transaction type.
| Types | $type | The transaction type (e.g., 'ecom', 'moto'). |
| InvalidFieldException | if the provided type is not valid. |
| validate | ( | ) |
Reimplemented in QuixParameters.
|
protected |
|
protected |