On line 72, if $paymentDate return DateTime with specific payment date, and it's been format to "Y-m-d\TH:i:sP" the http request will result to a bed http request since the require date format is 'Y-m-d' (without TH:i:sP). The quick fix is to change the format on line 72 to 'Y-,-d' instead of DateTime::RFC3339. The better way to make this work is to change the required date format to "Y-m-d\TH:i:sP" so we can continue use DateTime::RFC3339.
On line 72, if $paymentDate return DateTime with specific payment date, and it's been format to "Y-m-d\TH:i:sP" the http request will result to a bed http request since the require date format is 'Y-m-d' (without TH:i:sP). The quick fix is to change the format on line 72 to 'Y-,-d' instead of
DateTime::RFC3339
. The better way to make this work is to change the required date format to "Y-m-d\TH:i:sP" so we can continue useDateTime::RFC3339
.Check the payment_date field's description here https://www.currencycloud.com/developers/docs/item/create-payment/