Skip to content

Regarding PaymentSheet class #9083

Open
@omertanveer

Description

@omertanveer

Hi.

I am trying to create 2 separate instances of PaymentSheet in an android activity, lets say ActivityA.
So I have 2 separate objects PaymentSheetA and PaymentSheetB

Both of these payment sheets have their own separate createIntentCallbacks i.e, createIntentCallbackA and createIntentCallbackB

However when I call presentWithIntentConfiguration for PaymentSheetA, fill in the card details and press the pay button on the payment sheet, it ends up calling createIntentCallbackB instead of createIntentCallbackA.

Is somehow the PaymentSheet allowing only one payment sheet creation per activity?
If someone tries to create 2 payment sheet objects, does the createIntentCallback get overridden by the latest one?

Would be great if someone can shed some light on this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions