Business-GoCardless
view release on metacpan or search on metacpan
t/004_end_to_end_pro.t view on Meta::CPAN
my $tmp_dir = "$Bin/end_to_end";
plan skip_all => "GOCARDLESS_ENDTOEND required"
if ! $ENV{GOCARDLESS_ENDTOEND};
eval 'use Mojo::UserAgent';
$@ && plan skip_all => "Install Mojolicious to run this test";
# this is an "end to end" test - it will call the gocardless API
# using the details defined in the ENV variables below. you need
# to run t/gocardless_callback_reader.pl allowing the callbacks
# from gocardless to succeed, which feeds the details back into
# this script (hence "end to end") - note that the redirect URI
# and webhook URI in the sandbox/live developer settings will also
# need to match that of the address running the script
my ( $token,$url,$DEBUG ) = @ENV{qw/
GOCARDLESS_TOKEN
GOCARDLESS_URL
GOCARDLESS_DEBUG
/};
( run in 1.157 second using v1.01-cache-2.11-cpan-9b1e4054eb1 )