Jump to content


Paypal In-Context Checkout Loading In Lightbox And After Few Seconds Revert To Classic Express Check Out

paypal in-context

  • Please log in to reply
No replies to this topic

#1 rick12345



  • Members
  • Pip
  • 1 posts

Posted 13 October 2015 - 10:23 AM

paypal in-context checkout loading in lightbox and after few seconds revert to classic express check out. i read this post paypal in-context checkout reverts back to classic express checkoutbut it didnt help

<form class="ajaxasync">
<button id="t2" type="submit" class="checkout" class="paypal-button-hidden">
<img src="https://www.paypalob...ssCheckout.gif">


$scope.paypalArray['method'] ="SetExpressCheckout";
$scope.paypalArray['PAYMENTREQUEST_0_AMT']= "1.00";
$scope.paypalArray['PAYMENTREQUEST_0_CURRENCYCODE'] = "USD";
$scope.paypalArray['PAYMENTREQUEST_0_PAYMENTACTION'] = "Sale";
$scope.paypalArray['returnUrl']= "https://devtools-pay...l?success=true";
$scope.paypalArray['cancelUrl'] = "https://devtools-pay...rl?cancel=true";
$scope.paypalArray['version'] = "124.0";
$scope.paypalArray['USER'] = "myuserid@gmail.com";
$scope.paypalArray['PWD']= "9MKJCKB9JLSDEHD";
$scope.paypalArray['signature'] = "ABObRIVX-x21JGHTHGJJKLyToPvwtHhA90pM0a-gaGJs54hytrf2OzBfd";
$scope.paypalArray['L_PAYMENTREQUEST_0_NAME0'] = "item";
$scope.paypalArray['L_PAYMENTREQUEST_0_AMT0'] = "1.00";
$scope.paypalArray['L_PAYMENTREQUEST_0_QTY0'] = "1";

window.paypalCheckoutReady = function() {
paypal.checkout.setup("56EJUS986TVWQ", {
environment: 'sandbox',
click: function(event) {
var url = paypal.checkout.urlPrefix + "EC%2d54U76817C6392042J";
button: ['t2']

the first api call i am doing to get token return with success. after i put the token to open the paypal lightbox window. the light box open for a few seconds with blank page and then redirect to classic display express checkout. I couldent find any solution for that. The wired part is that if i copy paste the example form paypal its works well : http://plnkr.co/edit...I0Ujc?p=preview. or if i put my token and merchant id in the example in  http://plnkr.co/edit...I0Ujc?p=preview the same bug happen. i think this is mean the problem is in the values i sent($scope.paypalArray).

thanks in advance.

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users