Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Business::PayPal and sandbox / developer paypal

by davidov0009 (Scribe)
on Nov 23, 2007 at 01:26 UTC ( [id://652469]=perlquestion: print w/replies, xml ) Need Help??

davidov0009 has asked for the wisdom of the Perl Monks concerning the following question:

Dear monks,

I am planning on using the modules Business::PayPal and Business::PayPal::IPN in one of my perl projects. In order to test my work I will use the PayPal developer sandbox (which simply uses a different url than the live paypal site for posts / notifications). Unfortunately I have seen nothing in CPAN, Google, or perlmonks Super search on how to use this module with sandbox mode.

Has anyone had experience with these modules in either live or sandbox modes?
  • Comment on Business::PayPal and sandbox / developer paypal

Replies are listed 'Best First'.
Re: Business::PayPal and sandbox / developer paypal
by aquarium (Curate) on Nov 23, 2007 at 01:54 UTC
    according to CPAN doc for the module "See the sandbox parameter to new() below for details"....i guess RTFM.
    the hardest line to type correctly is: stty erase ^H

      That line appears in the docs for Business::PayPal::API, which isn't one of the modules I'm using. Thanks though for the heads up, I'll consider that one in the future.

      I am having some luck with changing the $GTW variable in the IPN.pm file for the ::IPN module to the sandbox address, and then changing the entries for the live site with the sandbox address under the -address and -action parameters in the PayPal.pm of the ::PayPal module.

      For any of you looking to do the same here is what I did:
      #Line 21 of PayPal.pm (Business::PayPal) address => 'https://www.paypal.com/cgi-bin/webscr' #change to https:// +www.sandbox.paypal.com/cgi-bin/webscr #Line 82 of PayPal.pm (Business::PayPal) -action => 'https://www.paypal.com/cgi-bin/webscr', #do same a +s above comment #Line 13 of IPN.pm (Business::PayPal::IPN) $GTW = 'https://www.paypal.com/cgi-bin/webscr'; # do same as ab +ove comments

      When I go live I'll change these back to the live address.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://652469]
Approved by randyk
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (6)
As of 2024-04-19 11:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found