I am new to stripe payment gateway and I have created a stripe account where I have my plans and subscriptions. It is working fine. Below are my plans and subscriptions in image format.
Below is my checkout page
<form action="charge.php" method="POST">
<script
src="https://checkout.stripe.com/checkout.js" class="stripe-button"
data-key="pk_test_ZCRfEl8XeRIbPHGIifY3THYC"
data-amount="999"
data-name="Demo Site"
data-description="Widget"
data-image="https://stripe.com/img/documentation/checkout/marketplace.png"
data-locale="auto">
</script>
I want to insert customer info like amount of transaction, customer id etc.., into my database when recurring payment occurs in stripe method. Can anyone help me?
You have to use webhook to get the data when recurring payment happen.
You can do with
$customer
varibale after successful Payment .you can Collect whole information about payment by$customer
If you want to access the collecting card and recurring information after successful payment, you'd need to dofor storing information about customer you need to add this on process:
stripe also provide you information about payment, see all object by
print_r($customer)
.A$customer
can have more than one source at the same time. The source property on the Customer is a list as documented here.