Hi,

Sorry, here is the full code:

#!/usr/bin/perl -w # ================================================================== # Test script for Stripe payments use strict; use lib '/srv/www/site.pro/www/cgi-bin/trust/admin'; use Links qw/$USER $IN $DB $CFG/; use CGI::Carp qw(fatalsToBrowser); use Links::SiteHTML; use LWP::Simple; use POSIX qw(ceil); use JSON; Links::init('/srv/www/site.pro/www/cgi-bin/trust/admin'); my $key = $CFG->{stripe_mode} eq "test" ? $CFG->{stripe_secret_test} : + $CFG->{stripe_secret_live}; print "KEY: $key ($CFG->{stripe_mode}) \n"; use Digest::MD5 qw(md5_hex); use Net::Stripe; my $stripe = Net::Stripe->new( api_key => $CFG->{stripe_mode} eq "test" ? $CFG->{stripe_secre +t_test} : $CFG->{stripe_secret_live}, debug => '1', debug_network => '1' ); print $IN->header; use Data::Dumper; print STDERR Dumper(customer => $USER->{stripe_customer_id}, limit + => 10); my $cards = $stripe->get_cards(customer => 'cus_ALXYaoa9Lpo4Gs', l +imit => 10); print $IN->header; use Data::Dumper; print Dumper($cards);


Line 35 is:

  my $cards = $stripe->get_cards(customer => 'cus_ALXYaoa9Lpo4Gs', limit => 10);

Thanks!

Andy

In reply to Re^2: Net::Stripe, Moose bug? by ultranerds
in thread Net::Stripe, Moose bug? by ultranerds

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.