Paypal Plus Brazil error MISSING_EXPERIENCE_PROFILE_ID

DevFen
Contributor
Contributor

I am working with paypal plus. I am not sure that I need this checkout.js.

I use the code in my other post to generate de approval URL and I complete on this function of paypal plus:

 

<script language="JavaScript">
    var arr = []
function initiateCheckout() {
    
    var ppp = PAYPAL.apps.PPP({
        "mode": "sandbox",
        "placeholder": "ppplus",
        "payerEmail": "email",
        "payerFirstName": "comprador",
        "payerLastName": "teste",
        "payerPhone": "12988108463",
        "payerTaxId": "30949017787",
        "miniBrowser": false,
        "language":"pt_BR",
        "country":"BR",
        "merchantInstallmentSelection": "1" ,
        "merchantInstallmentSelectionOptional": true,
        'disableContinue': "continueButton",
        'enableContinue': "continueButton"
    })
    arr.push(ppp)

 }
 function subCheckout() {
    arr[0].doContinue()
 }
 
</script>
<button type="submit" id="miniBrowserInitiateCheckout"
class="btn btn-lg btn-primary btn-block"
onclick=" initiateCheckout(); return false;">
Checkout
</button>

<button
    type="submit"
    id="continueButton"
    onclick="subCheckout(); return false;"> Submit
 </button>
 
 
This error is about payer_id, isn't it?
Login to Me Too
1 ACCEPTED SOLUTION

Accepted Solutions
Solved

dannymtzp
Contributor
Contributor

How did you solve it?
I have the same problem, even having created a through
https://api.sandbox.paypal.com/v1/payment-experience/web-profiles
and add it to the payment request https://api.sandbox.paypal.com/v1/payments/payment
in the "experience_profile_id" field with response from the approvalURL url and it gives me the same message MISSING_EXPERIENCE_PROFILE_ID

View solution in original post

Login to Me Too
1 REPLY 1
Solved

dannymtzp
Contributor
Contributor

How did you solve it?
I have the same problem, even having created a through
https://api.sandbox.paypal.com/v1/payment-experience/web-profiles
and add it to the payment request https://api.sandbox.paypal.com/v1/payments/payment
in the "experience_profile_id" field with response from the approvalURL url and it gives me the same message MISSING_EXPERIENCE_PROFILE_ID

Login to Me Too

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.