Payment processing error: Metadata
-
Looks like I just had a customer who tried to check out with Stripe iDEAL twice and failed. I see this message:
“Error processing payment. Reason: Metadata can have up to 50 keys, but you’ve set 78. Email us at [email protected] for more information.”
What can I do to resolve this and prevent this from happening in the future?
-
Hi @teuptworkshop,
Thanks for contacting us. Can you please provide the log entry for this failed order? It will be helpful to see the metadata so I can cross reference it with the error message.
To locate the log entry, login to your Stripe Dashboard > Developers > Logs. You should be able to find the log entry based on failed payment intents. Or you can provide me with your account ID located on the Stripe API Settings page and I will locate the log entry.
Have you added any customization using the plugin’s filters where you are adding additional metadata to the order beyond what the plugin adds?
Kind Regards,
This is what I see in that log: (removed personal details)
{
“amount”: “7493”,
“currency”: “EUR”,
“description”: “Order 269647 from BLOKJESKONING”,
“shipping”: {
“address”: {
“city”: “xxx”,
“country”: “NL”,
“line1”: “xxx”,
“line2”: “”,
“postal_code”: “xxx”,
“state”: “”
},
“name”: “xxx”
},
“metadata”: {
“gateway_id”: “stripe_ideal”,
“order_id”: “269647”,
“user_id”: “0”,
“customer_id”: “”,
“ip_address”: “xxx”,
“user_agent”: “Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1.1 Safari/605.1.15”,
“partner”: “PaymentPlugins”,
“created”: “1594843223”,
“product_269514”: “Beugel 1 x 2 – 1 x 2 Donkergrijs x 4”,
“product_259594”: “Beugel 1 x 2 – 1 x 4 (geronde hoeken) Wit x 4”,
“product_264556”: “Beugel 1 x 2 – 2 x 2 Donkergrijs x 4”,
“product_263147”: “Blokje 1 x 1 Zwart x 10”,
“product_264047”: “Blokje 1 x 1 Wit x 10”,
“product_263140”: “Blokje 1 x 1 Transparant x 10”,
“product_259526”: “Blokje 1 x 1 x 3 Lichtgrijs x 10”,
“product_268262”: “Blokje 1 x 1 x 5 – Normaal Nopje Zwart x 4”,
“product_268258”: “Blokje 1 x 1 x 5 – Normaal Nopje Wit x 4”,
“product_262348”: “Blokje 1 x 2 Wit x 10”,
“product_262345”: “Blokje 1 x 2 Geel x 4”,
“product_261830”: “Blokje 1 x 2 Holle Binnenkant Transparant x 4”,
“product_267956”: “Blokje 1 x 2 x 2 Opening voor Nopje midden in onderkant Lichtgrijs x 4”,
“product_259923”: “Blokje 1 x 2 x 3 Wit x 4”,
“product_269153”: “Blokje 1 x 2 x 5 – Holle Nopjes Wit x 4”,
“product_265388”: “Blokje 1 x 2 x 5 Holle binnenkant Transparant x 4”,
“product_269298”: “Blokje 1 x 3 Zwart x 6”,
“product_262773”: “Blokje 1 x 3 Donkergrijs x 6”,
“product_262763”: “Blokje 1 x 3 Lichtgrijs x 6”,
“product_262190”: “Blokje 1 x 4 Donkergrijs x 4”,
“product_262181”: “Blokje 1 x 4 Lichtgrijs x 4”,
“product_261810”: “Blokje 1 x 4 Geel x 10”,
“product_262265”: “Blokje 1 x 6 Wit x 14”,
“product_262084”: “Blokje 1 x 8 Wit x 2”,
“product_260094”: “Schotel Diameter 4 (dicht nopje) opdruk 043 Wit x 1”,
“product_263795”: “Plaatje Rond 1 x 1 Zwart x 10”,
“product_263813”: “Plaatje Rond 1 x 1 Lichtgrijs x 1”,
“product_262111”: “Plaatje Rond 2 x 2 met Asgat Zwart x 6”,
“product_269324”: “Schokdemper 6.5 Lang Zacht Lichtgrijs x 1”,
“product_262433”: “Asje 2 (met groefjes) Rood x 10”,
“product_263099”: “Asje 5 Lichtgrijs x 5”,
“product_261389”: “Asje 5 Donker Zandkleur x 4”,
“product_267408”: “Pen Stroef 2 Lang + Asje Donkergrijs x 10”,
“product_267409”: “Pen Stroef 2 Lang + Asje Rood x 9”,
“product_267473”: “Pen Stroef + Asje 2 Zwart x 4”,
“product_264797”: “Pen + Nopje Lichtgrijs x 10”,
“product_264798”: “Pen + Nopje Blauw x 10”,
“product_269494”: “Pen Stroef + Pengat + Pen Stroef Zwart x 4”,
“product_266400”: “Pen Stroef + Pengat + Pen Stroef Lichtgrijs x 10”,
“product_265299”: “Pen Stroef 2 Lang + Asgat Zwart x 10”,
“product_265298”: “Pen Stroef 2 Lang + Asgat Lichtgrijs x 10”,
“product_260142”: “Pen Stroef + Pengat Zwart x 9”,
“product_264655”: “Technic Blokje 1 x 1 Donkergrijs x 10”,
“product_264630”: “Technic Blokje 1 x 1 Wit x 10”,
“product_262065”: “Technic Blokje 1 x 2 met Asgat Lichtgrijs x 10”,
“product_264316”: “Technic Blokje 1 x 2 Lichtgrijs x 10”,
“product_264320”: “Technic Blokje 1 x 2 Wit x 4”,
“product_264312”: “Technic Blokje 1 x 2 Rood x 4”,
“product_264314”: “Technic Blokje 1 x 2 Geel x 4”,
“product_262755”: “Technic Blokje 1 x 2 2 Pengaten Donkergrijs x 10”,
“product_262226”: “Technic Blokje 1 x 4 Donkergrijs x 10”,
“product_262593”: “Technic Blokje 1 x 6 Zwart x 10”,
“product_262588”: “Technic Blokje 1 x 6 Wit x 4”,
“product_261715”: “Technic Blokje 1 x 10 Lichtgrijs x 10”,
“product_264193”: “Technic Blokje 1 x 12 Zwart x 4”,
“product_262335”: “Technic Blokje 1 x 14 Lichtgrijs x 6”,
“product_266253”: “Technic Blokje 1 x 2 – 1 x 2 met Plaatje 2 x 4 eronder Donkergrijs x 2”,
“product_262998”: “Technic Blokje 4 x 6 Open Zwart x 2”,
“product_265374”: “Technic Blokje 6 x 8 Open Zwart x 2”,
“product_269367”: “Connector 26287 Zwart x 20”,
“product_265508”: “Connector 6538c Donkergrijs x 10”,
“product_265509”: “Connector 6538c Lichtgrijs x 10”,
“product_260276”: “Connector 26287 Lichtgrijs x 10”,
“product_264963”: “Connector 48989 Lichtgrijs x 10”,
“product_267324”: “Tandwiel Diameter 1 (modern) Donkergrijs x 4”,
“product_266364”: “Dubbel Kegeltandwiel Diameter 1.5 Zwart x 2”,
“product_264266”: “Kegeltandwiel Dubbelzijdig Diameter 2 Zwart x 2”,
“product_261441”: “Wormwiel 2 Lang Lichtgrijs x 4”,
“product_268270”: “Spoiler 4 breed aan Hendel Donkergrijs x 2”,
“product_260760”: “Wiel 24869 Achtbaan Donkergrijs x 4”
},
“confirmation_method”: “automatic”,
“capture_method”: “automatic”,
“confirm”: “false”,
“payment_method_types”: {
“0”: “ideal”
}
}`Looks like every product is an entry, and I am going to have many orders with more than 50 products. Seems it can have only 50 entries but the plugin doesn’t cap it at 50?
-
This reply was modified 4 years, 8 months ago by
teuptworkshop.
Hi @teuptworkshop,
Thanks for providing that log entry. It looks like I need to cap the metadata entries at 50, which the plugin does not currently do. I am planning on releasing a new version of the plugin later today so I will add that validation.
Kind Regards,
Great news! Thanks for the very fast reply and for planning this improvement. My customers will be happy! ??
By the way, in the meantime I also contacted Stripe per their instructions. They mentioned that there is a chance that at some point they will increase the limit as they are aware it does not suit everybody. In that case they’ll post it on their blog https://stripe.com/blog
Just a headsup, as the fix you’re preparing might at some point become obsolete ??
Hi @teuptworkshop,
Thank you for providing that info. If they change the limit at some point in the future, I will just remove the validation in a future release.
Kind Regards,
Version 3.1.7 released which contains a metadata property count validation.
Great! Thanks for confirming that. I just noticed the update this morning. Thanks for this fix! ??
-
This reply was modified 4 years, 8 months ago by
- The topic ‘Payment processing error: Metadata’ is closed to new replies.