-
- All Implemented Interfaces:
-
com.oppwa.mobile.connect.provider.IPaymentProvider
public class OppPaymentProvider extends PaymentProviderRepresents the methods and properties of the payment provider.
-
-
Field Summary
Fields Modifier and Type Field Description private ThreeDSWorkflowListenerthreeDSWorkflowListener
-
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 voidsetThreeDSWorkflowListener(@NonNull() ThreeDSWorkflowListener threeDSWorkflowListener)Sets ThreeDSWorkflowListener to handle 3-D Secure workflow. voidrequestBrandsValidation(@NonNull() String checkoutId, @NonNull() Array<String> brands, @NonNull() ITransactionListener listener)Requests the BrandsValidation. voidrequestImages(@NonNull() Array<String> brands, @NonNull() ITransactionListener listener)Requests the ImagesRequest Please note that the callback will be called in a different Thread. voidrequestBinInfo(@NonNull() String checkoutId, @NonNull() String bin, @NonNull() BinInfoListener listener)Request the com.oppwa.mobile.connect.provider.model.BinInfo for specific bin. voidrequestIdealBanks(@NonNull() String checkoutId, @NonNull() IdealBanksListener listener)The iDEAL 1.0is no longer supported, the iDEAL2.0doesn't require a bank name to create the PaymentParams, see createIdealTwoPaymentParams.Map<String, String>getFPXBanks()Returns the list of FPX banks as a map of bank name to bank value. voidrequestCheckoutInfo(@NonNull() String checkoutId, @NonNull() ITransactionListener listener)Requests the CheckoutInfo by checkout id. voidrequestCheckoutData(@NonNull() String checkoutId, @NonNull() ResponseListener<CheckoutData> listener)Requests the CheckoutData by checkout id. voidsubmitTransaction(@NonNull() Transaction transaction, @NonNull() ITransactionListener listener)Starts executing a transaction. voidregisterTransaction(@NonNull() Transaction transaction, @NonNull() ITransactionListener listener)Creates a just registration separate from any later payment. voidsendTransaction(@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.0is no longer supported, the iDEAL2.0doesn't require a bank name to create the PaymentParams, see createIdealTwoPaymentParams.- Parameters:
checkoutId- the checkout idlistener- listener the ITransactionListener
-
getFPXBanks
@NonNull() Map<String, String> getFPXBanks()
Returns the list of FPX banks as a map of bank name to bank value. This can be used to display a FPX bank list selection UI.
-
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
-
-
-
-