- COPYRIGHT AND LICENSE
WebService::PayPal::PaymentsAdvanced::Response::SecureToken - Response class for creating secure tokens
my $ppa = WebService::PayPal::PaymentsAdvanced->new( ... ); my $response = $ppa->create_secure_token( ... );
You should not create this response object directly. It will be provided to you via "<create_secure_token" in WebService::PayPal::PaymentsAdvanced.
MODE query parameter on
hosted_form_uri. This can be
The URL for the PayflowLink web service. Can be a mocked URL.
Bool which indicates whether we should pre-fetch the hosted form and do some error checking (recommended).
The number of HTTP retries to attempt if we encounter an error response. We retry only when encountering HTTP 5xx responses.
A callback function we call prior to retrying the HTTP request to PayPal. We call this function only when a retry will take place afterwards. Note we retry only when there are retry attempts remaining, and only when encountering HTTP 5xx errors.
This callback is useful if you want to know about each request failure. Consider a case where the first request failed, and then a retry request succeeded. If you want to know about the first failure, you can provide a callback that we call prior to the retry. In this scenario, you may want your callback function to write a message to a log.
The callback will receive a single parameter, an HTTP::Response object. This is the response to the request that failed.
This module inherits from WebService::PayPal::PaymentsAdvanced::Response, please see its documentation for a list of the methods which it provides..
Returns a URI object which you can use either to insert an iframe into your pages or redirect the user to PayPal directly in order to make a payment.
use WebService::PayPal::PaymentsAdvanced; my $payments = WebService::PayPal::PaymentsAdvanced->new( validate_hosted_form_uri => 1, ... ); my $response = $payments->create_secure_token(...); my $uri = $response->hosted_form_uri;
HashRef of parameters which have been returned by PayPal.
Returns the PayPal SECURETOKEN param.
Returns the PayPal SECURETOKENID param.
Bugs may be submitted through https://github.com/maxmind/webservice-paypal-paymentsadvanced/issues.
Olaf Alders <email@example.com>
This software is copyright (c) 2018 by MaxMind, Inc.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.