Net::API::Stripe::Checkout::Item - A Stripe Checkout Item
my $item = $stripe->session->display_items([ { amount => 2000, currency => 'jpy', description => 'Some item', name => 'Session item', plan => $plan_object, quantity => 1, type => 'plan', }]);
v0.200.0
The line items, plans, or SKUs purchased by the customer.
This is part of the Net::API::Stripe::Checkout::Session object an called from the method display_items
It inherits from Net::API::Stripe::List::Item
Creates a new Net::API::Stripe::Checkout::Item object. It may also take an hash like arguments, that also are method of the same name.
Amount for the display item.
Three-letter ISO currency code, in lowercase. Must be a supported currency.
The description of the line item.
The images of the line item.
The name of the line item.
The description for the line item. This is used in session checkout line_items.
A list of images representing this line item. This is used in session checkout line_items.
The name for the line item. This is used in session checkout line_items.
This is a Net::API::Stripe::Billing::Plan object.
Quantity of the display item being purchased.
This is a Net::API::Stripe::Order::SKU object.
The type of display item. One of custom, plan or sku
{ "id": "ppage_fake123456789", "object": "checkout.session", "billing_address_collection": null, "cancel_url": "https://example.com/cancel", "client_reference_id": null, "customer": null, "customer_email": null, "display_items": [ { "amount": 1500, "currency": "usd", "custom": { "description": "Comfortable cotton t-shirt", "images": null, "name": "T-shirt" }, "quantity": 2, "type": "custom" } ], "livemode": false, "locale": null, "mode": null, "payment_intent": "pi_fake123456789", "payment_method_types": [ "card" ], "setup_intent": null, "submit_type": null, "subscription": null, "success_url": "https://example.com/success", "line_items": [ { "name": "T-shirt", "description": "Comfortable cotton t-shirt", "amount": 1500, "currency": "jpy", "quantity": 2 } ] }
Initial version
Jacques Deguest <jack@deguest.jp>
Stripe API documentation:
https://stripe.com/docs/api
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.
To install Net::API::Stripe, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::API::Stripe
CPAN shell
perl -MCPAN -e shell install Net::API::Stripe
For more information on module installation, please visit the detailed CPAN module installation guide.