#0Bietnua-STPPaymentContext-iOS

1 messages ยท Page 1 of 1 (latest)

analog coyote
buoyant atlas
#

Hi

analog coyote
#

Hello ๐Ÿ‘‹

buoyant atlas
#

If I build UI by myself

#

include payment list

#

so right now I can't use STPPaymentContext right?

#

because no selectedPaymentOption in STPPaymentContext

#

Mean that I don't use STPPaymentOptionsViewController anymore

analog coyote
#

I am not sure as I don't have the full context on this
Did you speak to someone earlier? I can catch up on your previous thread

buoyant atlas
#

no, this is first time

#

I create pm context by this
self.paymentContext = STPPaymentContext(customerContext: customerContext,
configuration: config,
theme: theme)

#

but I don't know how to attach any payment method to current payment context

analog coyote
#

ah okay.
Let me take a look and give me a few as I haven't used my iOS skills in a while ๐Ÿ˜„

buoyant atlas
#

Thank you. I hope I can use STPPaymentContext manually without opening STPPaymentOptionsViewController

#

Thank you

quick phoenix
buoyant atlas
#

I set the value

#

but seem it doesn't work

quick phoenix
#

Did you call retryLoading after setting it?

buoyant atlas
#

let me try

#

oh it works

#

amazing haha

#

I didn't call retryLoading before

#

Thank you

quick phoenix
#

Great to hear that that fixed it! I was still booting up my XCode project to test

buoyant atlas
#

Did you use xcode 13.3

#

its better than the old one

quick phoenix
#

Nice! I am still on 13.2 but I will make sure to upgrade as soon as possible.