capacitor-community / proposals

Plugin and platform requests ✋
75 stars 2 forks source link

SumUp #72

Open rbedemann opened 3 years ago

rbedemann commented 3 years ago

Plugin Request

Name: SumUp Package: @capacitor-community/sum-up

Platform(s)

Android iOS

Existing Solutions

https://ionicframework.com/docs/native/sum-up https://github.com/nuvoPoint/cordova-plugin-sumup

Description

Integration of SumUp's own Android and iOS SDKs.

rbedemann commented 3 years ago

I created a basic Plugin implementation for the most important functionality (login and checkout) here: https://github.com/rbedemann/capacitor-sumup-plugin. Feel free to review the implementation.

GiacomoVeneir commented 3 years ago

I created a basic Plugin implementation for the most important functionality (login and checkout) here: https://github.com/rbedemann/capacitor-sumup-plugin. Feel free to review the implementation.

Hi @rbedemann, I'm pretty new to capacitor and I'm having some problem using the plugin you built. Hope you can help me ;)

I've followed your implementation guide but when I tried to run it on iOS I got "TypeError: undefined is not a function (near '...SumUp.checkout...')".

Screenshot 2021-01-15 at 16 52 30

By the way I was not able to use "npm i -S @capacitor-community/sumup" to install it. I had to run "npm I -S https://github.com/rbedemann/capacitor-sumup-plugin" Is it a problem due to installation?

(I have already tried npx cap sync, the plugin is visible to capacitor

Screenshot 2021-01-15 at 17 05 35

)

rbedemann commented 3 years ago

Hey @GiacomoVeneir,

thanks for your message!

Unfortunately iOS is not supported by the plugin at the moment. I neither have any experience in iOS development nor a device to test the implementation currently.

There's another plugin for Ionic (https://ionicframework.com/docs/native/sum-up, also linked above) which can also be used in capacitor. Have you tried that one already?

The reason why you could not install capacitor from @capacitor-community/sumup is because I'm still waiting for this plugin to be officially approved as a capacitor-community-plugin. As long as this issue is still open, the plugin proposal was not accepted/checked.

Hope that helped you a little bit.

GiacomoVeneir commented 3 years ago

Thanks @rbedemann for you work anyway! Good luck in the acceptance process!

(Yes, I tried the other plugin too. But it did not support iOS either)

riderx commented 2 years ago

@rbedemann i added your plugin to awesome-capacitor if that is useful please take time to star the repo as well :)