#Debbi-add-pm
1 messages · Page 1 of 1 (latest)
Hey! There's a couple options really that will enable your customers to save new payment details. How do you currently integrate with Stripe?
with stripe php
$this->stripe->paymentMethods->create([
'type' => 'card',
'card' => [
'number' => $data['card_number'],
'exp_month' => $expDate[0],
'exp_year' => $expDate[1],
'cvc' => $data['cvc'],
],
]);
But now we need stripe provided any link for this
Are you PCI compliant to be handling raw card data that way?
No, thatswhy we need to change this
You can either use Checkout in mode: 'setup': https://stripe.com/docs/payments/save-and-reuse?platform=checkout
Use Elements with a Setup Intent: https://stripe.com/docs/payments/save-and-reuse?platform=web
Or implement the Customer Portal: https://stripe.com/docs/billing/subscriptions/integrating-customer-portal
actually we are trying to create a platform in which customer buy products or services with save card
And now we facing problem PCI complaints. we are not created a subscription application.
Yep, Checkout and Elements will work in that scenario to help your customers provide/save payment details
no we don't have any checkout or payment form.
firstly we need add save payment method to customers and after services delivered to customer and verified then we charge from customer saved or selected card
Then you'll need to integrate one!
Yep, but you can't do any of that without first collecting payment method in a PCI compliant way via either Checkout or Elements
The links above show you how to do that
Okay with paymentintent we need to add any price amount pass in api params?
Not sure I understand the Q? You'd use the amount parameter yes: https://stripe.com/docs/api/payment_intents/create#create_payment_intent-amount
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Okay, Thanks