Package DE_EPAGES::SIA::API::Object::PaymentMethodSIA
object interface for Payment.
Base |
DE_EPAGES::Order::API::Object::ContainerPaymentMethod |
Functions
- canAddToBasket
- existsCurrentRegistrationTransaction
- featureName
- getCancelRedirectURL
- getConfig
- getCurrentRegistrationTransaction
- getRefundRedirectURL
- getSaleRedirectURL
- hasAcceptedCurrentTransaction
- hasDeclinedCurrentTransaction
- hasPendingCurrentTransaction
- isInTestMode
- provideRegistrationTransactionData
- saveRegistrationTransaction
- usableAtStorefront
canAddToBasket
Tests if a payment method can be added to the basket with the given currency. Overrides function DE_EPAGES::Order::API::Object::ContainerPaymentMethod::canAddToBasket Valid currencies are: EUR, GBP
Syntax |
if ($PaymentMethod->canAddToBasket($hVars)) {... |
Input |
|
Return |
|
existsCurrentRegistrationTransaction
exists a registration transation for the paymentmethod
Syntax |
$PaymentMethod->existsCurrentRegistrationTransaction; |
Return |
|
featureName
Returns the feature name 'SIA'.
Syntax |
$FeatureName = $PaymentMethod->featureName; |
Return |
|
getCancelRedirectURL
returns the cancel redirect url for the payment
Syntax |
$PaymentMethod->getCancelRedirectURL; |
Return |
|
getConfig
createa a new siaonfig object dependent from payment testmode
Syntax |
$PaymentMethod->getConfig; |
Return |
|
getCurrentRegistrationTransaction
gives back the current registration transaction which is used for the merchant registration
Syntax |
$PaymentMethod->getCurrentRegistrationTransaction; |
Return |
|
getRefundRedirectURL
returns the refund redirect url for the payment
Syntax |
$PaymentMethod->getRefundRedirectURL; |
Return |
|
getSaleRedirectURL
returns the sale redirect url for the payment
Syntax |
$PaymentMethod->getSaleRedirectURL; |
Return |
|
hasAcceptedCurrentTransaction
returns true if the current registration transaction is accepted
Syntax |
$PaymentMethod->hasAcceptedCurrentTransaction; |
Return |
|
hasDeclinedCurrentTransaction
returns true if the current registration transaction is declined
Syntax |
$PaymentMethod->hasDeclinedCurrentTransaction; |
Return |
|
hasPendingCurrentTransaction
returns true if the current registration transaction is still pending
Syntax |
$PaymentMethod->hasPendingCurrentTransaction; |
Return |
|
isInTestMode
returns if payment is in test mode
Syntax |
$PaymentMethod->isInTestMode; |
Return |
|
provideRegistrationTransactionData
provide the values which are needed for merchant registration
Syntax |
$PaymentMethod->provideRegistrationTransactionData( $PaymentNetwork, $MerchantID, $TerminalNumber, $MerchantTaxID); example $PaymentMethod->provideRegistrationTransactionData('Adyen','123123123123123','12312312','9486948'); |
Input |
|
Return |
|
saveRegistrationTransaction
saves a new registration transaction on payment and sets it as current transaction
Syntax |
$PaymentMethod->saveRegistrationTransaction; |
Input |
|
Return |
|
usableAtStorefront
Tests if a payment method is visible in the storefront. Overrides function DE_EPAGES::Payment::API::Object::PaymentMethod::usableAtStorefront to evaluate if payment method is configured
Syntax |
$Usable = $PaymentMethod->usableAtStorefront($hVars); |
Input |
|
Return |
|