Skip to content

Commit

Permalink
Merge PR #87 #87
Browse files Browse the repository at this point in the history
  • Loading branch information
jonjensen committed Mar 22, 2018
2 parents 49e38c1 + 526513b commit ce093a2
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/Vend/Payment/PaypalExpress.pm
Expand Up @@ -964,7 +964,13 @@ sub paypalexpress {

$method = SOAP::Data->name('SetExpressCheckoutReq')->attr({xmlns=>$xmlns});
$response = $service->call($header, $method => $request);
%result = %{$response->valueof('//SetExpressCheckoutResponse')};

my $result_hashref = $response->valueof('//SetExpressCheckoutResponse');
unless ($result_hashref) {
$Tag->error({ name => 'paypal_failure', set => errmsg('Unable to parse the PayPal response') });
return $Tag->deliver({ location => $checkouturl });
}
%result = %$result_hashref;
$::Scratch->{'token'} = $result{'Token'};
#::logDebug("PP".__LINE__.": result= ".::uneval(%result)); # ### NOTE
if (!$result{'Token'}) {
Expand Down

0 comments on commit ce093a2

Please sign in to comment.