-
- All Implemented Interfaces:
public interface IPaymentProvider
Represents a payment provider and its capabilities. All payment related calls are made through this instance.
-
-
Method Summary
Modifier and Type Method Description abstract Context
getContext()
abstract void
setProviderMode(@NonNull() Connect.ProviderMode providerMode)
abstract Connect.ProviderMode
getProviderMode()
abstract void
submitTransaction(@NonNull() Transaction transaction, @NonNull() ITransactionListener listener)
Starts executing a transaction. abstract void
registerTransaction(@NonNull() Transaction transaction, @NonNull() ITransactionListener listener)
Creates a just registration separate from any later payment. abstract void
sendTransaction(@NonNull() Transaction transaction, @NonNull() String endpoint, @NonNull() ITransactionListener listener)
Sends transaction to the specific endpoint. abstract void
requestBrandsValidation(@NonNull() String checkoutId, @NonNull() Array<String> brands, @NonNull() ITransactionListener listener)
Requests the BrandsValidation. abstract void
requestImages(@NonNull() Array<String> brands, @NonNull() ITransactionListener listener)
Requests the ImagesRequest. abstract void
requestCheckoutInfo(@NonNull() String checkoutId, @NonNull() ITransactionListener listener)
Requests the CheckoutInfo by checkout id. abstract void
requestBinInfo(@NonNull() String checkoutId, @NonNull() String bin, @NonNull() BinInfoListener listener)
Request the com.oppwa.mobile.connect.provider.model.BinInfo for specific bin. abstract void
requestCheckoutData(@NonNull() String checkoutId, @NonNull() ResponseListener<CheckoutData> listener)
Requests the CheckoutData by checkout id. abstract 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.-
-
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.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 IdealBanksListener
-
-
-
-