Payjp class
Provides flutter bridge for PAY.JP.
Constructors
- Payjp()
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- channel → MethodChannel
-
final
Static Methods
-
completeCardForm(
) → Future - Close displaying card form.
-
init(
{required String publicKey, bool debugEnabled = false, Locale? locale, PayjpThreeDSecureRedirect? threeDSecureRedirect}) → Future -
Initialize PAYJP with
publicKey
and other configurations. -
isApplePayAvailable(
) → Future< bool> - Return availability of ApplePay. You should call in only iOS. See https://developer.apple.com/documentation/passkit/pkpaymentauthorizationviewcontroller/1616192-canmakepayments
-
makeApplePayToken(
{required String appleMerchantId, required String currencyCode, required String countryCode, required String summaryItemLabel, required String summaryItemAmount, bool? requiredBillingAddress, OnApplePayProducedTokenCallback? onApplePayProducedTokenCallback, OnApplePayFailedRequestTokenCallback? onApplePayFailedRequestTokenCallback, OnApplePayCompletedCallback? onApplePayCompletedCallback}) → Future -
Start Apple Pay payment authorization flow.
You have to set your own merchant id provided by Apple into
appleMerchantId
. All callback parameters are optional, but you should useonApplePayProducedTokenCallback
to send PAY.JP token to your server. -
setIOSCardFormStyle(
{Color? labelTextColor, Color? inputTextColor, Color? errorTextColor, Color? tintColor, Color? inputFieldBackgroundColor, Color? submitButtonColor, Color? highlightColor}) → Future - Set CardForm Style for iOS.
-
showTokenProcessingError(
String message) → Future -
Keep displaying card form, and show
message
as error message. -
startCardForm(
{OnCardFormCanceledCallback? onCardFormCanceledCallback, OnCardFormCompletedCallback? onCardFormCompletedCallback, OnCardFormProducedTokenCallback? onCardFormProducedTokenCallback, String? tenantId, CardFormType cardFormType = CardFormType.multiLine}) → Future -
Start card form.
It will activate a native screen provided by Payjp.
All callback parameters are optional, but you should use
onCardFormProducedTokenCallback
to send PAY.JP token to your server.tenantId
is a parameter only for platform API.cardFormType
is type of CardForm.(default MultiLine)