I have following code that allows me to make a Stripe Payment from CLI.
curl -u stripe-secret-key-here: -d amount=100 -d currency=gbp -d 'card[number]=4242424242424242' -d 'card[exp_month]=5' -d 'card[exp_year]=2015' https://api.stripe.com/v1/charges However if I try to use the following from the URL/Asterisk Dial Plan then I receive below given error.
https://stripe-secret-key-here:@api.stripe.com/v1/charges?amount=100& currency=gbp&card[number]=4242424242424242&card[exp_month]=5&card[exp_year]=2015 Error:
{ "error": { "type": "invalid_request_error", "message": "Received unknown parameter: card", "param": "card" } } Would appreciate a little help... Thanks.