IPaymentMethodPluginBeginTransaction Method |
Begins the transaction on the payment gateway/engine.
Namespace:
Atomia.Billing.Core.Sdk.Plugins
Assembly:
Atomia.Billing.Core.Sdk (in Atomia.Billing.Core.Sdk.dll) Version: 18.10.7096.28998
Syntax PaymentTransaction BeginTransaction(
PaymentTransaction transaction
)
Function BeginTransaction (
transaction As PaymentTransaction
) As PaymentTransaction
PaymentTransaction^ BeginTransaction(
PaymentTransaction^ transaction
)
abstract BeginTransaction :
transaction : PaymentTransaction -> PaymentTransaction
Parameters
- transaction
- Type: Atomia.Billing.Core.Sdk.BusinessObjectsPaymentTransaction
The transaction.
Return Value
Type:
PaymentTransactionUpdated transaction. Plugin should not be in charge for persisting transaction.
Remarks
It gets transaction object and according to the data stored in transaction object it creates transaction on the payment gateway.
For synchronous payments, it returns new transaction object with filled TransactionAttributes and other properties. Status of the transaction is set to "Completed"
For async payment, it also fills the properties, and sets that transaction is in progress.
It can receive PaymentProfile in the transaction. In that case, it should use that payment profile, otherwise, it should store payment profile and then use it.
See Also