#shakilkhan496
1 messages · Page 1 of 1 (latest)
Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- shakilkhan496, 7 hours ago, 57 messages
Hello! I'm not sure I understand your question, can you provide more details?
[
{
prodigiDetails: {
merchantReference: 'MyMerchantReference1',
shippingMethod: 'Overnight',
recipient: [Object],
items: [Array],
metadata: [Object]
},
orderDetails: {
product: 'COVERS-POSTER',
price: 30,
currency: 'USD',
quantity: 1
}
},
{
prodigiDetails: {
merchantReference: 'MyMerchantReference1',
shippingMethod: 'Overnight',
recipient: [Object],
items: [Array],
metadata: [Object]
},
orderDetails: {
product: 'COVERS-POSTER',
price: 30,
currency: 'USD',
quantity: 1
}
},
}
]
Here is my data model
I am using node js
So here will be muiltiple cart item
I want to create payment intent with all these data , and also want to get data on webhook
" I'm looking to add a custom Stripe checkout integration to my site https://ngenart.com. I would need to combine the checkout experience with the ability to add custom items to cart with the print service Prodigi and their API. Is something you could help with" this was requirement
I have done all part , But as here is large amount of data I am having problem with pass everything in metadata
What can be the solution ?
Payment Intents are a low-level payment object that is not aware of line items. Have a look at the video here: https://stripe.com/docs/payments/tour#payment-objects
Understand
How can I hanlde muiltiple item that cart is providing ?
I have already added a function to get the total amount calculation , that works
But I need all those data in the webhook
And with metadata I cannot pass all data
If you're using Payment Intents you can try adding the data you need as metadata: https://stripe.com/docs/api/payment_intents/create#create_payment_intent-metadata
My main goal is to get the full array of cart in webhook some how
If it won't fit in metadata you'll need to store the information on your end and then store some reference to that data in the metadata.