Net::API::Stripe::Terminal::ConnectionToken - A Stripe Connection Token Object
my $token = $stripe->connection_token({ # Usable anywhere because undef location => undef, secret => 'pst_SGHJYDGHjfdldjflTHshfj', });
See documentation in Net::API::Stripe for example to make api calls to Stripe to create those objects.
v0.100.0
A Connection Token is used by the Stripe Terminal SDK to connect to a reader.
Creates a new Net::API::Stripe::Terminal::ConnectionToken object. It may also take an hash like arguments, that also are method of the same name.
String representing the object’s type. Objects of the same type share the same value.
The id of the location that this connection token is scoped to. If specified the connection token will only be usable with readers assigned to that location, otherwise the connection token will be usable with all readers.
Your application should pass this token to the Stripe Terminal SDK.
{ "object": "terminal.connection_token", "secret": "pst_test_fake123456789" }
Initial version
Jacques Deguest <jack@deguest.jp>
Stripe API documentation:
https://stripe.com/docs/api/terminal/connection_tokens, https://stripe.com/docs/terminal/readers/fleet-management#create
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.