I would output the arguments to the second post_form call just before it occurs. It may be that something behind the scenes has messed with $headers for example, since it is a reference.
Without the first call, the second call to Stripe gives an error because I haven't got the parameters right. But it doesn't complain about there not not being an API key
I would also try to fix this first. This problem may be masking others and resulting in the odd response you currently see. Once you can make the second call in isolation without any error then you can be more sure of the rest of the script.
🦛
In reply to Re: HTTP::Tiny losing headers for Stripe
by hippo
in thread HTTP::Tiny losing headers for Stripe
by Bod
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |