public PayjpTokenBackgroundHandler
After card token created successfully, invoke handler with the token.
During this invocation, the card form activity will keep active,
and return class CardFormStatus.Complete, the activity will finish.
But return class CardFormStatus.Error, the activity will not finish and show error message.
The invocation execute in background.
In most case, the application send the token to own server, to apply the result to card form activity.
| 修飾子とタイプ | インタフェースと説明 |
|---|---|
static class |
PayjpTokenBackgroundHandler.CardFormStatus
Card Form Status that is result of
PayjpTokenBackgroundHandler.handleTokenInBackground.
If the card token send to server successfully, status may be class CardFormStatus.Complete,
and the Card form will finish and return the token.
If an error happened in sending to server, status may be class CardFormStatus.Error,
and the Card form will not finish immediately. |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
PayjpTokenBackgroundHandler.CardFormStatus |
handleTokenInBackground(Token token)
Invoke in background with
class Token. |
@WorkerThread @NotNull PayjpTokenBackgroundHandler.CardFormStatus handleTokenInBackground(@NotNull Token token)
Invoke in background with class Token.
token - Card Token which is created by card form.class Token