# 16-04-21 - Properly implement live testing without real Stripe keys
#
use HTTP::Tiny;
use JSON::PP;
use Data::Dumper;
use strict;
use warnings;
our $VERSION = '1.3';
$VERSION = eval $
e {
my $content = $response->{'content'};
eval {
$content = decode_json($response->{'content'});
};
if ($@) {
$self->{'error'} = $content;
ntent;
if ($self->{'error'}) {
return $intent;
} else {
return decode_json($intent)->{'id'};
}
}
sub get_ids {
my ($self, %attrs) = @_;
$self->{'public