NAME
Net::API::Stripe::Customer::Card - A Stripe Customer Card Object
SYNOPSIS
my $card = $stripe->customer_card({
account => 'acct_fake123456789',
# Or you can also simply pass a Net::API::Stripe::Address object
# address => $address_object
address_line1 => '1-2-3 Kudan-Minami, Chiyoda-ku',
address_line2 => 'Big bldg. 12F',
address_city => 'Tokyo',
address_zip => '123-4567',
address_country => 'jp',
brand => 'visa',
country => 'jp',
currency => 'jpy',
customer => $customer_object,
cvc => 123,
# Boolean
default_for_currency => 1,
exp_month => 12,
exp_year => 2030,
funding => 'debit',
metadata => { transaction_id => 123, customer_id => 456 },
name => 'John Doe',
});
See documentation in Net::API::Stripe for example to make api calls to Stripe to create those objects.
VERSION
v0.2.0
DESCRIPTION
This class represents a customer card. It is almost the same as the external account, and it actually inherits all of its methods from it.
API SAMPLE
{
"id": "card_1LnbQv2eZvKYlo2ClaAC0Zy9",
"object": "card",
"address_city": null,
"address_country": null,
"address_line1": null,
"address_line1_check": null,
"address_line2": null,
"address_state": null,
"address_zip": null,
"address_zip_check": null,
"brand": "Visa",
"country": "US",
"customer": null,
"cvc_check": "pass",
"dynamic_last4": null,
"exp_month": 8,
"exp_year": 2023,
"fingerprint": "Xt5EWLLDS7FJjR1c",
"funding": "credit",
"last4": "4242",
"metadata": {},
"name": null,
"redaction": null,
"tokenization_method": null
}
HISTORY
v0.1.0
Initial version
AUTHOR
Jacques Deguest <jack@deguest.jp>
SEE ALSO
Stripe API documentation:
https://stripe.com/docs/api/cards, https://stripe.com/docs/sources/cards
COPYRIGHT & LICENSE
Copyright (c) 2022 DEGUEST Pte. Ltd.
You can use, copy, modify and redistribute this package and associated files under the same terms as Perl itself.