NAME
Net::API::Stripe::Billing::Details - An interface to Stripe API
SYNOPSIS
my $billing_details = $stripe->charge->billing_details({
address => $stripe->address({
line1 => '1-2-3 Kudan-Manami, Chiyoda-ku',
line2 => 'Big Bldg, 12F',
city => 'Tokyo',
postal_code => '123-4567',
country => 'jp',
}),
email => 'john.doe@example.com',
name => 'John Doe',
phone => '+81-90-1234-5678',
});
VERSION
v0.100.0
DESCRIPTION
This is created by method billing_details Net::API::Stripe::Charge or by method billing_details in Net::API::Stripe::Payment::Method and capture the billing details
CONSTRUCTOR
new( %ARG )
Creates a new Net::API::Stripe::Billing::Details object. It may also take an hash like arguments, that also are method of the same name.
METHODS
address hash
Billing address.
This is a Net::API::Stripe::Address object.
email string
Email address.
name string
Full name.
phone string
Billing phone number (including extension).
API SAMPLE
{
"id": "pm_123456789",
"object": "payment_method",
"billing_details": {
"address": {
"city": "Anytown",
"country": "US",
"line1": "1234 Main street",
"line2": null,
"postal_code": "123456",
"state": null
},
"email": "jenny@example.com",
"name": null,
"phone": "+15555555555"
},
"card": {
"brand": "visa",
"checks": {
"address_line1_check": null,
"address_postal_code_check": null,
"cvc_check": null
},
"country": "US",
"exp_month": 8,
"exp_year": 2020,
"fingerprint": "xksmmnsnmhfjskhjh",
"funding": "credit",
"generated_from": null,
"last4": "4242",
"three_d_secure_usage": {
"supported": true
},
"wallet": null
},
"created": 123456789,
"customer": null,
"livemode": false,
"metadata": {
"order_id": "123456789"
},
"type": "card"
}
HISTORY
v0.1
Initial version
AUTHOR
Jacques Deguest <jack@deguest.jp>
SEE ALSO
Stripe API documentation:
COPYRIGHT & LICENSE
Copyright (c) 2019-2020 DEGUEST Pte. Ltd.
You can use, copy, modify and redistribute this package and associated files under the same terms as Perl itself.