-
- All Implemented Interfaces:
public interface IPaymentProviderRepresents a payment provider and its capabilities. All payment related calls are made through this instance.
-
-
Method Summary
Modifier and Type Method Description abstract ContextgetContext()abstract voidsetProviderMode(@NonNull() Connect.ProviderMode providerMode)abstract Connect.ProviderModegetProviderMode()abstract voidsubmitTransaction(@NonNull() Transaction transaction, @NonNull() ITransactionListener listener)Starts executing a transaction. abstract voidregisterTransaction(@NonNull() Transaction transaction, @NonNull() ITransactionListener listener)Creates a just registration separate from any later payment. abstract voidsendTransaction(@NonNull() Transaction transaction, @NonNull() String endpoint, @NonNull() ITransactionListener listener)Sends transaction to the specific endpoint. abstract voidrequestBrandsValidation(@NonNull() String checkoutId, @NonNull() Array<String> brands, @NonNull() ITransactionListener listener)Requests the BrandsValidation. abstract voidrequestImages(@NonNull() Array<String> brands, @NonNull() ITransactionListener listener)Requests the ImagesRequest. abstract voidrequestCheckoutInfo(@NonNull() String checkoutId, @NonNull() ITransactionListener listener)Requests the CheckoutInfo by checkout id. abstract voidrequestBinInfo(@NonNull() String checkoutId, @NonNull() String bin, @NonNull() BinInfoListener listener)Request the com.oppwa.mobile.connect.provider.model.BinInfo for specific bin. abstract voidrequestCheckoutData(@NonNull() String checkoutId, @NonNull() ResponseListener<CheckoutData> listener)Requests the CheckoutData by checkout id. abstract 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.abstract Map<String, String>getFPXBanks()Returns the list of FPX banks as a map of bank name to bank value. -
-
Method Detail
-
getContext
@NonNull() abstract Context getContext()
-
setProviderMode
abstract void setProviderMode(@NonNull() Connect.ProviderMode providerMode)
-
getProviderMode
@NonNull() abstract Connect.ProviderMode getProviderMode()
-
submitTransaction
abstract void submitTransaction(@NonNull() Transaction transaction, @NonNull() ITransactionListener listener)
Starts executing a transaction. Please note that the checkoutWorkflowListener will be called in a different Thread. Use a Handler or similar when updating the UI from the callback.
- Parameters:
transaction- the transaction to executelistener- the ITransactionListener
-
registerTransaction
abstract void registerTransaction(@NonNull() Transaction transaction, @NonNull() ITransactionListener listener)
Creates a just registration separate from any later payment.
- Parameters:
transaction- the transaction to be registeredlistener- the ITransactionListener
-
sendTransaction
abstract 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
-
requestBrandsValidation
abstract 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
abstract 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
-
requestCheckoutInfo
abstract void requestCheckoutInfo(@NonNull() String checkoutId, @NonNull() ITransactionListener listener)
Requests the CheckoutInfo by checkout id.
- Parameters:
checkoutId- the checkout idlistener- the ITransactionListener
-
requestBinInfo
abstract void requestBinInfo(@NonNull() String checkoutId, @NonNull() String bin, @NonNull() BinInfoListener listener)
Request the com.oppwa.mobile.connect.provider.model.BinInfo for specific bin. Please note that the request requires successful requestCheckoutInfo and callback will be called in a different Thread.
- Parameters:
checkoutId- The checkout id.bin- The first 6 or more digits of the card number.listener- The result listener BinInfoListener.
-
requestCheckoutData
abstract void requestCheckoutData(@NonNull() String checkoutId, @NonNull() ResponseListener<CheckoutData> listener)
Requests the CheckoutData by checkout id.
- Parameters:
checkoutId- The checkout id.listener- The result listener <
-
requestIdealBanks
@Deprecated() abstract 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 IdealBanksListener
-
getFPXBanks
@NonNull() abstract 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 custom FPX bank selection UI.
-
-
-
-