01 Jan 2022 22:16:33 UTC
- Distribution: WebService-PayPal-PaymentsAdvanced
- Module version: 0.000028
- Source (raw)
- Browse (raw)
- How to Contribute
- Testers (90 / 1 / 6)
- KwaliteeBus factor: 1
- 97.58% Coverage
- License: perl_5
- Perl: v5.16.0
- Activity24 month
- Download (67.21KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest versionMAXMIND MaxMind, Inc.
- Reverse dependencies
- CPAN Testers List
- Dependency graph
- 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.
MODEquery parameter on
hosted_form_uri. This can be
The URL for the PayflowLink web service. Can be a mocked URL.
Boolwhich 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;
HashRefof 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) 2022 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.
Module Install Instructions
To install WebService::PayPal::PaymentsAdvanced, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install WebService::PayPal::PaymentsAdvanced
For more information on module installation, please visit the detailed CPAN module installation guide.