public class PayjpCardFormFragment implements PayjpCardFormView, CardScannerPlugin.CardScanOnResultListener, CardScannerPlugin.CardScannerPermissionDelegate
| 修飾子とタイプ | クラスと説明 |
|---|---|
static class |
PayjpCardFormFragment.Companion |
| 修飾子とタイプ | フィールドと説明 |
|---|---|
static PayjpCardFormFragment.Companion |
Companion |
| コンストラクタと説明 |
|---|
PayjpCardFormFragment() |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
Task<jp.pay.android.model.Token> |
createToken() |
boolean |
isValid() |
static PayjpCardFormFragment |
newInstance(boolean holderNameEnabled,
TenantId tenantId,
CardBrand[] acceptedBrands)
Create new fragment instance with args
|
void |
onActivityCreated(android.os.Bundle savedInstanceState) |
void |
onActivityResult(int requestCode,
int resultCode,
android.content.Intent data) |
void |
onAttach(android.content.Context context) |
android.view.View |
onCreateView(android.view.LayoutInflater inflater,
android.view.ViewGroup container,
android.os.Bundle savedInstanceState) |
void |
onDetach() |
void |
onNeverAskAgainCardScannerPermission()
Call if a permission request was disallowed with "Never ask again".
|
void |
onRequestPermissionsResult(int requestCode,
java.lang.String[] permissions,
kotlin.Array[] grantResults) |
void |
onScanResult(java.lang.String cardNumber)
It will be called after scan success.
It will not be called when canceled.
|
void |
onViewCreated(android.view.View view,
android.os.Bundle savedInstanceState) |
void |
setCardHolderNameInputEnabled(boolean enabled) |
boolean |
validateCardForm() |
createToken, isValid, setCardHolderNameInputEnabled, validateCardFormonScanResultonNeverAskAgainCardScannerPermissionpublic static PayjpCardFormFragment.Companion Companion
public void onAttach(@NotNull
android.content.Context context)
public void onDetach()
@Nullable
public android.view.View onCreateView(@NotNull
android.view.LayoutInflater inflater,
@Nullable
android.view.ViewGroup container,
@Nullable
android.os.Bundle savedInstanceState)
public void onViewCreated(@NotNull
android.view.View view,
@Nullable
android.os.Bundle savedInstanceState)
public void onActivityCreated(@Nullable
android.os.Bundle savedInstanceState)
public void onActivityResult(int requestCode,
int resultCode,
@Nullable
android.content.Intent data)
public void onRequestPermissionsResult(int requestCode,
@NotNull
java.lang.String[] permissions,
@NotNull
kotlin.Array[] grantResults)
public void onScanResult(@Nullable
java.lang.String cardNumber)
It will be called after scan success. It will not be called when canceled.
cardNumber - card number scannedpublic void onNeverAskAgainCardScannerPermission()
Call if a permission request was disallowed with "Never ask again".
public boolean isValid()
public boolean validateCardForm()
public void setCardHolderNameInputEnabled(boolean enabled)
@NotNull public Task<jp.pay.android.model.Token> createToken()
@JvmStatic @NotNull public static PayjpCardFormFragment newInstance(boolean holderNameEnabled, @Nullable TenantId tenantId, @Nullable CardBrand[] acceptedBrands)
Create new fragment instance with args
holderNameEnabled - a option it require card holder name or not.tenantId - a option for platform tenant.acceptedBrands - accepted brands. if it is null, the fragment try to get them.