#ncky3_code

1 messages ¡ Page 1 of 1 (latest)

quartz blazeBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1409622348201590909

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

warm cargo
#

hi! asking the obvious question, why can't you use the Stripe iOS SDK?

ionic kelp
#

My ios app is actually a SDK that will be used by other apps, and so I can't have added dependencies installed into it. Or am trying to avoid having added dependencies.

warm cargo
#

do say more - what is your SDK intended for

ionic kelp
#

Sdk is intended to allow users to see merchandise and purchase one.

warm cargo
#

how are you handling card details then? One big benefit Stripe's iOS SDK offers is that it handles card details for you so your integration doesn't have to touch card details and try to be PCI compliant

#

my recommendation would be to still include the Stripe iOS SDK, no point in reinventing the functionality already offered, esp when it offers the benefit of being PCI compliant

#

I've heard of other companies who distribute their SDK with Stripe's iOS SDK in it

#

you can also conditionally import parts of the SDK only

#

like StripeApplePay which handles the PKPaymentToken stuff to decrypt that

ionic kelp
#

hmmm I see thanks for the information. Can I implement apple pay using StripeApplePay sdk entirely using runtime reflection? Just checking to see if I must have Stripe installed or if the apps that use my sdk might already have stripe installed.

warm cargo
#

not sure I understand - you won't need apps that use your Stripe SDK installed, right? cause your SDK could bundle the required components into your SDK

ionic kelp
#

Sorry, I am still trying to see if Stripe sdk absolutely needs to live within my sdk. Or if it can live within apps that use my sdk and then I can conditionally call on and configure stripe instance/classes/methods within my sdk.

#

that way for apps that don't need this feature of my sdk, wouldn't have to worry about my sdk containing stripe.

warm cargo
#

You can do:
1/ make Stripe's iOS SDK a pre-requisite for your SDK
2/ do the runtime checking to ensure the Stripe iOS SDK is installed

to do (2), you kind of have to do (1), depending on how big payments is a part of your SDK

ionic kelp
#

Okay sounds like there's no way around it. Thanks!
Is StripeApplePay the only module I need to install if I just care for apple pay?

warm cargo
#

I think so but I'm not entirely sure tbh, been a while since I dove into the iOS SDK

ionic kelp
#

Np, thanks a bunch! I'll give StripeApplePay a shot.