stripe icon indicating copy to clipboard operation
stripe copied to clipboard

Problem migrating from Capacitor 7 to v.8 and to SPM

Open ciccilleju opened this issue 1 month ago • 2 comments

I migrated my app from Capacitor 7 to Capacitor 8, and on iOS I switched from CocoaPods to Swift Package Manager (SPM).

However, I now have a dependency issue when I try to add the packages (even before running a build).

It tells me: Failed to resolve dependencies Dependencies could not be resolved because 'stripe' depends on 'capacitor-swift-pm' 7.0.0..<8.0.0

what shoudl I do?

Image

ciccilleju avatar Dec 15 '25 10:12 ciccilleju

Thanks for opening the issue.

I haven’t started updating the plugin for Capacitor 8 yet. I’m planning to do this together with a major Stripe update, which requires setting aside a bit of focused time.

I expect to complete the work within about a week, so I’d appreciate a little more patience.

rdlabo avatar Dec 15 '25 11:12 rdlabo

Thanks for opening the issue.

I haven’t started updating the plugin for Capacitor 8 yet. I’m planning to do this together with a major Stripe update, which requires setting aside a bit of focused time.

I expect to complete the work within about a week, so I’d appreciate a little more patience.

take your time and I realle (and we all do) appreciate your work!

grazie mille.

ciccilleju avatar Dec 15 '25 11:12 ciccilleju

I’ve published a pre-release v8.0.0-0.

You can find the release here:
https://github.com/capacitor-community/stripe/releases/tag/v8.0.0-0

It’s available via the next tag:

npm install @capacitor-community/stripe@next

If everything looks good over the next few days, I’m planning to promote this to the official v8.0.0 major release.

Please give it a try and let me know if you run into any issues 🙏

rdlabo avatar Dec 19 '25 10:12 rdlabo

I’ve published a pre-release v8.0.0-0.

You can find the release here:
https://github.com/capacitor-community/stripe/releases/tag/v8.0.0-0

It’s available via the next tag:

npm install @capacitor-community/stripe@next

If everything looks good over the next few days, I’m planning to promote this to the official v8.0.0 major release.

Please give it a try and let me know if you run into any issues 🙏

I will be back on Monday, I will try and let you know. Thank you !

ciccilleju avatar Dec 19 '25 10:12 ciccilleju

I’ve published a pre-release v8.0.0-0.

You can find the release here: https://github.com/capacitor-community/stripe/releases/tag/v8.0.0-0

It’s available via the next tag:

npm install @capacitor-community/stripe@next If everything looks good over the next few days, I’m planning to promote this to the official v8.0.0 major release.

Please give it a try and let me know if you run into any issues 🙏

tested on capacitor 8 and spm, so far so good.

my app uses Payment Sheet and seemed to be working.

Later today i will try the Apple pay and google pay payments, (i dont know why), right now if i try to use them (i'm on sandbox) the real payment card shows up instead of a test one. I will check the configuration later.

ciccilleju avatar Dec 22 '25 13:12 ciccilleju

Just to clarify this point: with Stripe Apple Pay, even in test/sandbox mode, you need to add a real card to Apple Wallet.

This is expected behavior — no real charge will be made, even though a real card is shown during the Apple Pay flow.

Stripe mentions this in their official documentation as well: https://stripe.com/docs/apple-pay#testing

rdlabo avatar Dec 23 '25 01:12 rdlabo

Just to clarify this point: with Stripe Apple Pay, even in test/sandbox mode, you need to add a real card to Apple Wallet.

This is expected behavior — no real charge will be made, even though a real card is shown during the Apple Pay flow.

Stripe mentions this in their official documentation as well: https://stripe.com/docs/apple-pay#testing

Oh perfect. Well, I've tested and I haven't found any issues

Let's see if someone else has tried it out

Grazie mille

ciccilleju avatar Dec 23 '25 09:12 ciccilleju

Thanks for checking 🙏
I was able to confirm on my side as well that everything looks good, so I’ve now released this as v8.0.0 🎉

I’ll close this issue, but please feel free to reopen it or open a new one if you run into anything else.

rdlabo avatar Dec 24 '25 02:12 rdlabo