-
- All Implemented Interfaces:
-
com.oppwa.mobile.connect.provider.IPaymentProvider
public class OppPaymentProvider extends PaymentProvider
Represents the methods and properties of the payment provider.
-
-
Field Summary
Fields Modifier and Type Field Description private ThreeDSWorkflowListener
threeDSWorkflowListener
-
Constructor Summary
Constructors Constructor Description OppPaymentProvider(Context context, Connect.ProviderMode providerMode)
Constructs a new payment provider with context and provider mode.
-
Method Summary
Modifier and Type Method Description void
setThreeDSWorkflowListener(@NonNull() ThreeDSWorkflowListener threeDSWorkflowListener)
Sets ThreeDSWorkflowListener to handle 3-D Secure workflow. void
requestBrandsValidation(@NonNull() String checkoutId, @NonNull() Array<String> brands, @NonNull() ITransactionListener listener)
Requests the BrandsValidation. void
requestImages(@NonNull() Array<String> brands, @NonNull() ITransactionListener listener)
Requests the ImagesRequest Please note that the callback will be called in a different Thread. void
requestBinInfo(@NonNull() String checkoutId, @NonNull() String bin, @NonNull() BinInfoListener listener)
Request the com.oppwa.mobile.connect.provider.model.BinInfo for specific bin. void
requestIdealBanks(@NonNull() String checkoutId, @NonNull() IdealBanksListener listener)
The iDEAL 1.0
is no longer supported, the iDEAL2.0
doesn't require a bank name to create the PaymentParams, see createIdealTwoPaymentParams.void
requestCheckoutInfo(@NonNull() String checkoutId, @NonNull() ITransactionListener listener)
Requests the CheckoutInfo by checkout id. void
requestCheckoutData(@NonNull() String checkoutId, @NonNull() ResponseListener<CheckoutData> listener)
Requests the CheckoutData by checkout id. void
submitTransaction(@NonNull() Transaction transaction, @NonNull() ITransactionListener listener)
Starts executing a transaction. void
registerTransaction(@NonNull() Transaction transaction, @NonNull() ITransactionListener listener)
Creates a just registration separate from any later payment. void
sendTransaction(@NonNull() Transaction transaction, @NonNull() String endpoint, @NonNull() ITransactionListener listener)
Sends transaction to the specific endpoint. -
-
Constructor Detail
-
OppPaymentProvider
OppPaymentProvider(Context context, Connect.ProviderMode providerMode)
Constructs a new payment provider with context and provider mode.- Parameters:
context
- the ContextproviderMode
- the Connect.ProviderMode
-
-
Method Detail
-
setThreeDSWorkflowListener
void setThreeDSWorkflowListener(@NonNull() ThreeDSWorkflowListener threeDSWorkflowListener)
Sets ThreeDSWorkflowListener to handle 3-D Secure workflow.
- Parameters:
threeDSWorkflowListener
- The 3-D Secure workflow listener.
-
requestBrandsValidation
void requestBrandsValidation(@NonNull() String checkoutId, @NonNull() Array<String> brands, @NonNull() ITransactionListener listener)
Requests the BrandsValidation. Please note that the callback will be called in a different Thread.
- Parameters:
checkoutId
- the checkout idbrands
- array of brands to get brands validationslistener
- the ITransactionListener
-
requestImages
void requestImages(@NonNull() Array<String> brands, @NonNull() ITransactionListener listener)
Requests the ImagesRequest Please note that the callback will be called in a different Thread.
- Parameters:
brands
- arrays of brands to get images from the serverlistener
- the ITransactionListener
-
requestBinInfo
void requestBinInfo(@NonNull() String checkoutId, @NonNull() String bin, @NonNull() BinInfoListener listener)
Request the com.oppwa.mobile.connect.provider.model.BinInfo for specific bin.
- Parameters:
checkoutId
- The checkout id.bin
- The first 6 or more digits of the card number.listener
- The result listener BinInfoListener.
-
requestIdealBanks
@Deprecated() void requestIdealBanks(@NonNull() String checkoutId, @NonNull() IdealBanksListener listener)
The iDEAL
1.0
is no longer supported, the iDEAL2.0
doesn't require a bank name to create the PaymentParams, see createIdealTwoPaymentParams.- Parameters:
checkoutId
- the checkout idlistener
- listener the ITransactionListener
-
requestCheckoutInfo
void requestCheckoutInfo(@NonNull() String checkoutId, @NonNull() ITransactionListener listener)
Requests the CheckoutInfo by checkout id. Please note that the callback will be called in a different Thread.
- Parameters:
checkoutId
- the checkout idlistener
- the ITransactionListener
-
requestCheckoutData
void requestCheckoutData(@NonNull() String checkoutId, @NonNull() ResponseListener<CheckoutData> listener)
Requests the CheckoutData by checkout id.
- Parameters:
checkoutId
- The checkout id.listener
- The result listener <.
-
submitTransaction
void submitTransaction(@NonNull() Transaction transaction, @NonNull() ITransactionListener listener)
Starts executing a transaction. Please note that the callback will be called in a different Thread.
- Parameters:
transaction
- the transaction to executelistener
- the ITransactionListener
-
registerTransaction
void registerTransaction(@NonNull() Transaction transaction, @NonNull() ITransactionListener listener)
Creates a just registration separate from any later payment. Please note that the callback will be called in a different Thread.
- Parameters:
transaction
- the transaction to be registeredlistener
- the ITransactionListener
-
sendTransaction
void sendTransaction(@NonNull() Transaction transaction, @NonNull() String endpoint, @NonNull() ITransactionListener listener)
Sends transaction to the specific endpoint. Depending on the endpoint the transaction will be submitted or registered only without making the payment.
- Parameters:
transaction
- the transaction to be sentendpoint
- the endpoint which will be used for processing transaction.listener
- the ITransactionListener
-
-
-
-