PayPal embedded flow: Payment can't be completed. This feature is currently unavailable

StackOverflow https://stackoverflow.com/questions/19589666

  •  01-07-2022
  •  | 
  •  

Question

I'm trying to get the example shown here to work:
https://developer.paypal.com/webapps/developer/docs/classic/adaptive-payments/ht_ap-embeddedPayment-curl-etc/

However, I always get the error Payment can't be completed. This feature is currently unavailable.

This is the code, taken directly from PayPal's documentation (where {{PAY-KEY}} is a pay key you obtain from PayPal):

<html>
    <head>
        <script src="https://www.paypalobjects.com/js/external/apdg.js" type="text/javascript"></script>
    </head>

    <body>
        <form action="https://www.sandbox.paypal.com/webapps/adaptivepayment/flow/pay" target="PPDGFrame" class="standard">
            <label for="buy">Buy Now:</label>
            <input type="image" id="submitBtn" value="Pay with PayPal" src="https://www.paypalobjects.com/en_US/i/btn/btn_paynowCC_LG.gif">
            <input id="type" type="hidden" name="expType" value="mini">
            <input id="paykey" type="hidden" name="paykey" value="{{PAY-KEY}}">
        </form>

        <script type="text/javascript" charset="utf-8">
        var dgFlowMini = new PAYPAL.apps.DGFlowMini({trigger: 'submitBtn'});
        </script>
    </body>

</html>

The same error occurs when you try to use this for Preapproval ([...]/flow/preapproval, request variable preapprovalKey), and also with the LightBox code sample.

What am I missing here ?

Was it helpful?

Solution

Contacted PayPal support and they apparently fixed it (again...).

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top