#Ronit
1 messages · Page 1 of 1 (latest)
I don't quite understand, can you elaborate ?
i have used let paymentIntentParams = STPPaymentIntentParams(clientSecret: paymentIntentClientSecret)
paymentIntentParams.paymentMethodParams = cardTextField.paymentMethodParams
// Submit the payment
let paymentHandler = STPPaymentHandler.shared()
paymentHandler.confirmPayment(paymentIntentParams, with: self) { (status, paymentIntent, error)
this code for stripe terminal integration but this works with card number payment but i want to use only with physical card tap and pay and swipe to pay using M2 reader
Sorry I still have trouble understanding you
can you give me reference code for only physical card payment using reader for ios swift
how can i use my created payment intent which are created on backend in this function
func checkoutAction() {
let params = PaymentIntentParameters(amount: 1000, currency: "gbp")
Terminal.shared.createPaymentIntent(params) { createResult, createError in
if let error = createError {
print("createPaymentIntent failed: (error)")
}
else if let paymentIntent = createResult {
print("createPaymentIntent succeeded")
self.collectCancelable = Terminal.shared.collectPaymentMethod(paymentIntent) { collectResult, collectError in
if let error = collectError {
print("collectPaymentMethod failed: (error)")
}
else if let paymentIntent = collectResult {
print("collectPaymentMethod succeeded")
// ... Process the payment
}
}
}
}
}
I still don't understand your question, This code creates a paymentIntent from terminal app, not from your backend.
ok
can you provide me sample code for payment intent verify that are created on backend
i'm sorry but we're really not able to understand what you're looking for. We have some quickstart sample code here for the relevant SDKs and different readers : https://stripe.com/docs/terminal/quickstart which you can refer to here