capacitor-community / stripe

Stripe Mobile SDK wrapper for Capacitor
MIT License
185 stars 74 forks source link

I am unable to listen events.Anbody can help me to get it done. Share some code snippet if possible. Stripe.addListener(completed: PaymentSheetEventsEnum.Completed, listenerFunc: () => void): PluginListenerHandle{ #82

Closed akkivinaya closed 2 years ago

akkivinaya commented 2 years ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.

akkivinaya commented 2 years ago

i was following wrong documentation

rdlabo commented 2 years ago

@akkivinaya You can check demo code: https://github.com/capacitor-community/stripe/blob/master/demo/angular/src/app/tab1/tab1.page.ts#L26-L44

Thanks.

akkivinaya commented 2 years ago

@akkivinaya You can check demo code: https://github.com/capacitor-community/stripe/blob/master/demo/angular/src/app/tab1/tab1.page.ts#L26-L44

Thanks.

thanks..

akkivinaya commented 2 years ago

Thanks a lot, rdlabo..Any sample code for Google pay/Apple pay integration with the plugin?

rdlabo commented 2 years ago

not yet. Please check https://github.com/capacitor-community/stripe#stripeinitializationoptions . And

Thanks.

akkivinaya commented 2 years ago

not yet. Please check https://github.com/capacitor-community/stripe#stripeinitializationoptions . And

Thanks.

Sample code is not available or it's not possible at the moment with plugin?

rdlabo commented 2 years ago

@akkivinaya This may be possible, I created API and connect Native SDK. This may be worked well. But sample code is not implemented yet; Thanks.

akkivinaya commented 2 years ago

can you please share the pseudo code for the same if possible?