#Ronit

1 messages · Page 1 of 1 (latest)

junior tokenBOT
sly dragon
#

I don't quite understand, can you elaborate ?

upbeat saffron
#

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

sly dragon
#

Sorry I still have trouble understanding you

upbeat saffron
#

can you give me reference code for only physical card payment using reader for ios swift

sly dragon
upbeat saffron
#

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
}
}
}

    }
}
sly dragon
#

I still don't understand your question, This code creates a paymentIntent from terminal app, not from your backend.

upbeat saffron
#

ok

junior tokenBOT
upbeat saffron
#

can you provide me sample code for payment intent verify that are created on backend

faint imp