-
-
28 Jun 2021 19:05:10 UTC
- Distribution: WebService-PayPal-PaymentsAdvanced
- Module version: 0.000027
- Source (raw)
- Browse (raw)
- Changes
- Homepage
- How to Contribute
- Repository
- Issues
- Testers (92 / 1 / 4)
- Kwalitee
Bus factor: 1- 97.61% Coverage
- License: perl_5
- Perl: v5.14.0
- Activity
24 month- Tools
- Download (67.26KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
and 8 contributors-
Olaf Alders
-
Andy Jack
-
Dave Rolsky
-
Greg Oschwald
-
Mark Fowler
-
Mateu X Hunter
-
Narsimham Chelluri
-
William Storey
- Dependencies
- Const::Fast
- Data::GUID
- DateTime
- DateTime::Format::MySQL
- DateTime::TimeZone
- HTTP::Message::PSGI
- HTTP::Status
- LWP::Protocol::https
- LWP::UserAgent
- List::AllUtils
- Mojolicious::Lite
- Moo
- Moo::Role
- MooX::HandlesVia
- MooX::StrictConstructor
- Net::Works::Address
- Net::Works::Network
- Test::LWP::UserAgent
- Throwable::Error
- Type::Params
- Type::Utils
- Types::Common::Numeric
- Types::Common::String
- Types::Standard
- Types::URI
- URI
- URI::FromHash
- URI::QueryParam
- Web::Scraper
- feature
- namespace::autoclean
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
WebService::PayPal::PaymentsAdvanced::Mocker::SilentPOST - Easily mock Silent POST transactions
VERSION
version 0.000027
SYNOPSIS
use LWP::UserAgent; use WebService::PayPal::PaymentsAdvanced::Mocker::SilentPOST; my $mocker = WebService::PayPal::PaymentsAdvanced::Mocker::SilentPOST->new(); my $ua = LWP::UserAgent->new(...); $ua->post( '/silent-post-url', $mocker->paypal_success, 'X-Forwarded-For' => '173.0.81.65' );
paypal_success
Returns a
HashRef
of POST params which can be used to mock a successful PayPal authorization.credit_card_success
Returns a
HashRef
of POST params which can be used to mock a successful credit card authorization.credit_card_auth_verification_success
Returns a
HashRef
of POST params which can be used to mock a successful zero dollar credit card authorization.credit_card_duplicate_invoice_id
Returns a
HashRef
of POST params which can be used to mock a unsuccessful credit card payment. In this case you've sent an invoice ID which is already attached to a previously successful transaction.DESCRIPTION
Use these methods to get a HashRef of params which you can POST to your application's silent POST endpoint. Keep in mind that if you have IP validation enabled you'll either need to spoof the originating IP of the request or disable the IP validation in test mode. I'd encourage you to do the former, if at all possible.
SUPPORT
Bugs may be submitted through https://github.com/maxmind/webservice-paypal-paymentsadvanced/issues.
AUTHOR
Olaf Alders <olaf@wundercounter.com>
COPYRIGHT AND LICENSE
This software is copyright (c) 2021 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.
cpanm WebService::PayPal::PaymentsAdvanced
perl -MCPAN -e shell install WebService::PayPal::PaymentsAdvanced
For more information on module installation, please visit the detailed CPAN module installation guide.