#deafwood
1 messages · Page 1 of 1 (latest)
Hello 👋
What happens if you take out the inner [ ] brackets
Example:
'description' => 'Registration: '.$dealid,
'metadata' => ['deal_id' => $dealid]
],```
That worked... thanks! Reason why I had extra brackets is because I was following the example shown on the API documentation:
I see. The example doesn't have a payment_intent_data property though!
True, but line_items has properties so I assumed it was the same idea.. thanks anyway!
ah I see. line_items is supposed to be an array of hashes and payment_intent_data is just an associative array
But I see what you mean