stripe-perl
stripe-perl copied to clipboard
Perl library to connect to the Stripe API
``` ~$ perl -Mstrict -Mwarnings -mNet::Stripe -e 'my $stripe = Net::Stripe->new(api_key => $ENV{STRIPE_API_KEY}); my $source = $stripe->create_source( type=> "card", token=> "tok_visa", metadata => { somecardmetadata => "testing, testing, 1-2-3", nested=>...
added create_bitcoin_receiver(), get_bitcoin_receiver(), and list_bitcoin_receivers(). Also updated the documentation on post_charge(), which can now accept a Bitcoin receiver id (analogous with a card token.) addresses #63
Not well documented in Stripe API docs, these are used if you're using Stripe as a processor for Apple Pay. Only one method, a post of a customer_id, which returns...
it is passed https://github.com/lukec/stripe-perl/blob/079e182a206cfe8ac2b0959ef5bc5359c96c168a/lib/Net/Stripe.pm#L1459-L1473 but not encoded, AFAICT https://github.com/lukec/stripe-perl/blob/079e182a206cfe8ac2b0959ef5bc5359c96c168a/lib/Net/Stripe.pm#L1677-L1714 and it looks like `date` may have been changed to [`due_date`](https://stripe.com/docs/api/invoices/list#list_invoices-due_date)
per an IRC chat with stripe engineers: > That's an old endpoint that we don't recommend anymore. Instead you'd retrieve the Customer directly and expand the list of sources on...
my current reading of the [docs](https://stripe.com/docs/api/charges/object#charge_object-payment_method_details) and the response from `post_charge()` is that it is more robust to interrogate the `payment_method_details` than any individual `card` or `source` returned. just wanted...
i have found these to be very useful during development. ``` $Carp::Verbose = 1; $Type::Tiny::DD = 999_999; ``` and can mean the difference between ``` Unknown named parameter: card at...
in perusing some of the other SDKs, specifically looking for how they test various `Source` types, i discovered various test tokens, like `src_123`, which don't seem to work against the...
long-term plan note: there is a mix of objects whose attributes are all 'ro' and those with some subset of attributes that are 'rw'. i think that the argument for...
i don't necessarily like the added maintenance of this list, but i do like shifting the error handling locally vs an unnecessary API call. ``` Error: invalid_request_error - Invalid currency:...