Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

paymentSheet.present is not a function #141

Closed
zulkarnainfaizan opened this issue Dec 27, 2021 · 8 comments
Closed

paymentSheet.present is not a function #141

zulkarnainfaizan opened this issue Dec 27, 2021 · 8 comments

Comments

@zulkarnainfaizan
Copy link

zulkarnainfaizan commented Dec 27, 2021

Describe the bug
Not able to present card action sheet in my ionic app when implementing Payment Sheet part:
I am getting this error:
TypeError: _this3.paymentSheet.present is not a function
at web.ts:74
at Generator.next ()
at asyncGeneratorStep (asyncToGenerator.js:3)
at _next (asyncToGenerator.js:25)
at asyncToGenerator.js:32
at new ZoneAwarePromise (zone.js:1340)
at asyncToGenerator.js:21
at StripeWeb.presentPaymentSheet (web.ts:67)
at index.js:196
at ZoneDelegate.invoke (zone.js:400)

on this function

export async function present(): Promise<void> {
  const result = await Stripe.presentPaymentSheet();
}

screenshot
image

@mengoni
Copy link

mengoni commented Dec 30, 2021

Hi,
I experienced the same issue and solved upgrading stripe elements package to 1.0.0

"@capacitor-community/stripe": "^3.4.2", "@stripe-elements/stripe-elements": "1.0.0",

Hope it helps

@rdlabo
Copy link
Member

rdlabo commented Jan 6, 2022

Please console.log(this.paymentSheet); This may not be plugin issue.

@rdlabo
Copy link
Member

rdlabo commented Jan 7, 2022

Is this issue resolved? This don't has any update, so will close. If be update, please re-open.
Thanks.

@rdlabo rdlabo closed this as completed Jan 7, 2022
@rdlabo
Copy link
Member

rdlabo commented Jan 19, 2022

@zulkarnainfaizan @mengoni Did you adapt this plugin for production? If yes, please tell us what app. Please help us to develop this plugin in 2022.
#145
Thanks.

@prabhjotAppmobi
Copy link

I am getting the same issue in version 4.0.0? is there any approach to solve it?

@praticboutic
Copy link

me too

@ayubUOL
Copy link

ayubUOL commented Sep 27, 2022

Any update for this issue? I'm trying to integrate it in ionic capacitor.

@giuseeFG
Copy link

giuseeFG commented Dec 4, 2023

any news about this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants