in reply to Re^2: HTTP::Tiny losing headers for Stripe
in thread HTTP::Tiny losing headers for Stripe
No - Stripe takes key/value pairs.Ah, I see. Still might be an issue sending a perl hash which is not the same as key-value pairs coming from a form. You could try:
'content' => $http->www_form_urlencode( $subscription ), # or just to try getting it to work 'content' => q|"items[0][id]"="x","items[0][price]"="some price"|,
Update: I think you can strike the above as looking at the source for the module post_form does call www_form_urlencode on the content. I'm stumped for the moment.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: HTTP::Tiny losing headers for Stripe
by Bod (Parson) on Jun 26, 2022 at 09:45 UTC |