#deondk-ios-retrieve-intent
1 messages ยท Page 1 of 1 (latest)
HI ๐ that's a pretty old version of our SDK, so I'm not sure off the top of my head if this is compatible, but I believe this is the function that you're looking for:
https://stripe.dev/stripe-ios/docs/Classes/STPAPIClient.html#/s:10StripeCore12STPAPIClientC0A0E21retrievePaymentIntent16withClientSecret10completionySS_yAD010STPPaymentF0CSg_s5Error_pSgtctF
Ok so I am on xamarin with an outdated ios sdk
and cannot find the retrievePaymentIntent on here...
I need to confirm whether 3DS was successfull after manually sending user to 3dS url
there is an option for StartPollingSource
will this give me any info if transaction was successfull>
?
I don't think so, I would expect you to be wokring with Payment Methods rather than Sources (though that may be a bad assumption given the older SDK). Are you using this function for confirming payments?
https://stripe.dev/stripe-ios/docs/Classes/STPPaymentHandler.html#/c:@M@Stripe@objc(cs)STPPaymentHandler(im)confirmPayment:withAuthenticationContext:completion:
No I am confirming payment intent on backend
then getting 3DS url and sending them to url to confirm
yes I think I am using payment methods
so now need to somehow confirm whether 3DS was success
in android I could retrieve payment intent to check
but cant find it available on the version I have here on xamarin
There is also a PaymentResult and PaymentStatus class
Is the function I linked initially for retrieving a Payment Intent not available in your version?
No
so what I get back from the 3DS redirect is three paramters.
paymentintent
clientsecret
and source_redirect
only option I can see now is to import the .net Stripe sdk and then use that to retrieve on client side
I'm not terribly familiar with Xamarin, but upgrading the iOS SDK that you're using seems like it would be the easier path.
not an option unfortunately. its not available. i am using the latest avaialble
where can I find the link to check how to retrieve payment intent on .net SDK
dont worry got it
getting an error no such payment intent: pi_3KnOoT2Z7qPIBjK41hTs1xrV
can you check if it exists on your side?
You should double check that you are accessing this using the correct account/context
Can you share the exact request ID that returns the error?
I am pretty sure I am
eg req_123
I am checking on dotnet side what is the status of payment intent
so sending over the payment intent
can I give you the test secret key ?
No, please do not.
StripeConfiguration.ApiKey = "";
var service = new PaymentIntentService();
var intent = service.Get(paymentIntent);
If you share a request ID I can see whether the request context matches
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
From the response headers where you get the error
I cant get that as I am in Xamarin .net now
But I can see the pi in the account dashboard
pi_3KnP9q2Z7qPIBjK403bZlcm2
do I have to set the stripeaccount as well of the express account?
Can can also check your account logs here: https://dashboard.stripe.com/test/logs/
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Yes, I suspect there is an issue with the conenct context if the PI is created under another account, you need to confirm it using the same context