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.


In reply to Re^2: Business::PayPal and sandbox / developer paypal by davidov0009
in thread Business::PayPal and sandbox / developer paypal by davidov0009

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.