| 1 | ##---------------------------------------------------------------------------- | ||
| 2 | ## Stripe API - ~/lib/Net/API/Stripe/Payment/Source/Redirect.pm | ||
| 3 | ## Version v0.100.0 | ||
| 4 | ## Copyright(c) 2019 DEGUEST Pte. Ltd. | ||
| 5 | ## Author: Jacques Deguest <@sitael.tokyo.deguest.jp> | ||
| 6 | ## Created 2019/11/02 | ||
| 7 | ## Modified 2020/05/15 | ||
| 8 | ## | ||
| 9 | ##---------------------------------------------------------------------------- | ||
| 10 | package Net::API::Stripe::Payment::Source::Redirect; | ||
| 11 | BEGIN | ||
| 12 | { | ||
| 13 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 14 | 1 | ▶ | use parent qw( Net::API::Stripe::Generic ); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 15 | 1 | ▶ | our( $VERSION ) = 'v0.100.0'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 16 | }; | ||
| 17 | |||
| 18 | 0 | ▶ | sub failure_reason { return( shift->_set_get_scalar( 'failure_reason', @_ ) ); } |
|
Subroutine
failure_reason: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 19 | |||
| 20 | 0 | ▶ | sub return_url { return( shift->_set_get_uri( 'return_url', @_ ) ); } |
|
Subroutine
return_url: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 21 | |||
| 22 | 0 | ▶ | sub status { return( shift->_set_get_scalar( 'status', @_ ) ); } |
|
Subroutine
status: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 23 | |||
| 24 | 0 | ▶ | sub url { return( shift->_set_get_uri( 'url', @_ ) ); } |
|
Subroutine
url: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 25 | |||
| 26 | 1 | 1; | |
| 27 | |||
| 28 | __END__ | ||
| 29 | |||
| 30 | =encoding utf8 | ||
| 31 | |||
| 32 | =head1 NAME | ||
| 33 | |||
| 34 | Net::API::Stripe::Payment::Source::Redirect - A Stripe Payment Redirect | ||
| 35 | |||
| 36 | =head1 SYNOPSIS | ||
| 37 | |||
| 38 | my $redirect = $stripe->source->redirect({ | ||
| 39 | failure_reason => 'user_abort', | ||
| 40 | return_url => 'https://example.com/return', | ||
| 41 | status => 'failed', | ||
| 42 | url => 'https://example.com/auth', | ||
| 43 | }); | ||
| 44 | |||
| 45 | =head1 VERSION | ||
| 46 | |||
| 47 | v0.100.0 | ||
| 48 | |||
| 49 | =head1 DESCRIPTION | ||
| 50 | |||
| 51 | Information related to the redirect flow. Present if the source is authenticated by a redirect (flow is redirect). | ||
| 52 | |||
| 53 | This is part of the L<Net::API::Stripe::Payment::Source> object | ||
| 54 | |||
| 55 | =head1 CONSTRUCTOR | ||
| 56 | |||
| 57 | =over 4 | ||
| 58 | |||
| 59 | =item B<new>( %ARG ) | ||
| 60 | |||
| 61 | Creates a new L<Net::API::Stripe::Payment::Source::Redirect> object. | ||
| 62 | It may also take an hash like arguments, that also are method of the same name. | ||
| 63 | |||
| 64 | =back | ||
| 65 | |||
| 66 | =head1 METHODS | ||
| 67 | |||
| 68 | =over 4 | ||
| 69 | |||
| 70 | =item B<failure_reason> string | ||
| 71 | |||
| 72 | The failure reason for the redirect, either user_abort (the customer aborted or dropped out of the redirect flow), declined (the authentication failed or the transaction was declined), or processing_error (the redirect failed due to a technical error). Present only if the redirect status is failed. | ||
| 73 | |||
| 74 | =item B<return_url> string | ||
| 75 | |||
| 76 | The URL you provide to redirect the customer to after they authenticated their payment. | ||
| 77 | |||
| 78 | This is a L<URI> object. | ||
| 79 | |||
| 80 | =item B<status> string | ||
| 81 | |||
| 82 | The status of the redirect, either pending (ready to be used by your customer to authenticate the transaction), succeeded (succesful authentication, cannot be reused) or not_required (redirect should not be used) or failed (failed authentication, cannot be reused). | ||
| 83 | |||
| 84 | =item B<url> string | ||
| 85 | |||
| 86 | The URL provided to you to redirect a customer to as part of a redirect authentication flow. | ||
| 87 | |||
| 88 | This is a L<URI> object. | ||
| 89 | |||
| 90 | =back | ||
| 91 | |||
| 92 | =head1 API SAMPLE | ||
| 93 | |||
| 94 | { | ||
| 95 | "id": "src_fake123456789", | ||
| 96 | "object": "source", | ||
| 97 | "ach_credit_transfer": { | ||
| 98 | "account_number": "test_52796e3294dc", | ||
| 99 | "routing_number": "110000000", | ||
| 100 | "fingerprint": "ecpwEzmBOSMOqQTL", | ||
| 101 | "bank_name": "TEST BANK", | ||
| 102 | "swift_code": "TSTEZ122" | ||
| 103 | }, | ||
| 104 | "amount": null, | ||
| 105 | "client_secret": "src_client_secret_fake123456789", | ||
| 106 | "created": 1571314413, | ||
| 107 | "currency": "jpy", | ||
| 108 | "flow": "receiver", | ||
| 109 | "livemode": false, | ||
| 110 | "metadata": {}, | ||
| 111 | "owner": { | ||
| 112 | "address": null, | ||
| 113 | "email": "jenny.rosen@example.com", | ||
| 114 | "name": null, | ||
| 115 | "phone": null, | ||
| 116 | "verified_address": null, | ||
| 117 | "verified_email": null, | ||
| 118 | "verified_name": null, | ||
| 119 | "verified_phone": null | ||
| 120 | }, | ||
| 121 | "receiver": { | ||
| 122 | "address": "121042882-38381234567890123", | ||
| 123 | "amount_charged": 0, | ||
| 124 | "amount_received": 0, | ||
| 125 | "amount_returned": 0, | ||
| 126 | "refund_attributes_method": "email", | ||
| 127 | "refund_attributes_status": "missing" | ||
| 128 | }, | ||
| 129 | "statement_descriptor": null, | ||
| 130 | "status": "pending", | ||
| 131 | "type": "ach_credit_transfer", | ||
| 132 | "usage": "reusable" | ||
| 133 | } | ||
| 134 | |||
| 135 | =head1 HISTORY | ||
| 136 | |||
| 137 | =head2 v0.1 | ||
| 138 | |||
| 139 | Initial version | ||
| 140 | |||
| 141 | =head1 AUTHOR | ||
| 142 | |||
| 143 | Jacques Deguest E<lt>F<jack@deguest.jp>E<gt> | ||
| 144 | |||
| 145 | =head1 SEE ALSO | ||
| 146 | |||
| 147 | Stripe API documentation: | ||
| 148 | |||
| 149 | L<https://stripe.com/docs/api/sources/object> | ||
| 150 | |||
| 151 | =head1 COPYRIGHT & LICENSE | ||
| 152 | |||
| 153 | Copyright (c) 2019-2020 DEGUEST Pte. Ltd. | ||
| 154 | |||
| 155 | You can use, copy, modify and redistribute this package and associated | ||
| 156 | files under the same terms as Perl itself. | ||
| 157 | |||
| 158 | =cut | ||