paypal / merchant-sdk-php

PHP SDK for integrating with PayPal's Express Checkout / MassPay / Web Payments Pro APIs
Other
231 stars 201 forks source link

DPRP is disabled for this merchant PayPal sandbox #106

Closed sharmavikram closed 8 years ago

sharmavikram commented 8 years ago

Hello Everyone,

I am trying to implement paypal recurring payment but it shows error DPRP (Direct Payment Recurring Payment)is disabled for this merchant.

I am enabled paypal merchant business account to business-Pro account What are the steps for enabled DPRP Merchant Account

XML Request

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="urn:ebay:api:PayPalAPI" xmlns:ebl="urn:ebay:apis:eBLBaseComponents" xmlns:cc="urn:ebay:apis:CoreComponentTypes" xmlns:ed="urn:ebay:apis:EnhancedDataTypes" ><soapenv:Header><ns:RequesterCredentials><ebl:Credentials><ebl:Username>tpcgsocial3.0-facilitator_api1.gmail.com</ebl:Username><ebl:Password>2YYQC2VGT5N7CZNB</ebl:Password><ebl:Signature>AFcWxV21C7fd0v3bYYYRCpSSRl31A2ep68X-vyPwaCoH.MaWn8bbKLXK</ebl:Signature></ebl:Credentials></ns:RequesterCredentials></soapenv:Header><soapenv:Body><ns:CreateRecurringPaymentsProfileReq><ns:CreateRecurringPaymentsProfileRequest><ebl:CreateRecurringPaymentsProfileRequestDetails><ebl:CreditCard><ebl:CreditCardType>Visa</ebl:CreditCardType><ebl:CreditCardNumber>4032034815702124</ebl:CreditCardNumber><ebl:ExpMonth>7</ebl:ExpMonth><ebl:ExpYear>2021</ebl:ExpYear><ebl:CVV2>123</ebl:CVV2></ebl:CreditCard><ebl:RecurringPaymentsProfileDetails><ebl:SubscriberName>vikram</ebl:SubscriberName><ebl:SubscriberShippingAddress><ebl:Name>raipur</ebl:Name><ebl:Street1>Raipur</ebl:Street1><ebl:Street2>raipur</ebl:Street2><ebl:CityName>raipur</ebl:CityName><ebl:StateOrProvince>c.g.</ebl:StateOrProvince><ebl:Country>india</ebl:Country><ebl:Phone>8982103164</ebl:Phone><ebl:PostalCode>49200</ebl:PostalCode></ebl:SubscriberShippingAddress><ebl:BillingStartDate>2016-06-08T11:35:07+05:30</ebl:BillingStartDate></ebl:RecurringPaymentsProfileDetails><ebl:ScheduleDetails><ebl:Description>Welcome to the world of shopping where you get everything</ebl:Description><ebl:TrialPeriod><ebl:BillingPeriod>Day</ebl:BillingPeriod><ebl:BillingFrequency>10</ebl:BillingFrequency><ebl:TotalBillingCycles>2</ebl:TotalBillingCycles><ebl:Amount currencyID="USD">2.0</ebl:Amount><ebl:ShippingAmount currencyID="USD">0.0</ebl:ShippingAmount><ebl:TaxAmount currencyID="USD">0.0</ebl:TaxAmount></ebl:TrialPeriod><ebl:PaymentPeriod><ebl:BillingPeriod>Day</ebl:BillingPeriod><ebl:BillingFrequency>10</ebl:BillingFrequency><ebl:TotalBillingCycles>8</ebl:TotalBillingCycles><ebl:Amount currencyID="USD">5.0</ebl:Amount><ebl:ShippingAmount currencyID="USD">0.0</ebl:ShippingAmount><ebl:TaxAmount currencyID="USD">0.0</ebl:TaxAmount></ebl:PaymentPeriod><ebl:MaxFailedPayments>3</ebl:MaxFailedPayments><ebl:ActivationDetails><ebl:InitialAmount currencyID="USD">10</ebl:InitialAmount><ebl:FailedInitialAmountAction>ContinueOnFailure</ebl:FailedInitialAmountAction></ebl:ActivationDetails><ebl:AutoBillOutstandingAmount>AddToNextBilling</ebl:AutoBillOutstandingAmount></ebl:ScheduleDetails></ebl:CreateRecurringPaymentsProfileRequestDetails><ebl:Version>106.0</ebl:Version></ns:CreateRecurringPaymentsProfileRequest></ns:CreateRecurringPaymentsProfileReq></soapenv:Body></soapenv:Envelope>

XML Response

<?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:cc="urn:ebay:apis:CoreComponentTypes" xmlns:wsu="http://schemas.xmlsoap.org/ws/2002/07/utility" xmlns:saml="urn:oasis:names:tc:SAML:1.0:assertion" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:wsse="http://schemas.xmlsoap.org/ws/2002/12/secext" xmlns:ed="urn:ebay:apis:EnhancedDataTypes" xmlns:ebl="urn:ebay:apis:eBLBaseComponents" xmlns:ns="urn:ebay:api:PayPalAPI"><SOAP-ENV:Header><Security xmlns="http://schemas.xmlsoap.org/ws/2002/12/secext" xsi:type="wsse:SecurityType"></Security><RequesterCredentials xmlns="urn:ebay:api:PayPalAPI" xsi:type="ebl:CustomSecurityHeaderType"><Credentials xmlns="urn:ebay:apis:eBLBaseComponents" xsi:type="ebl:UserIdPasswordType"><Username xsi:type="xs:string"></Username><Password xsi:type="xs:string"></Password><Signature xsi:type="xs:string"></Signature><Subject xsi:type="xs:string"></Subject></Credentials></RequesterCredentials></SOAP-ENV:Header><SOAP-ENV:Body id="_0"><CreateRecurringPaymentsProfileResponse xmlns="urn:ebay:api:PayPalAPI"><Timestamp xmlns="urn:ebay:apis:eBLBaseComponents">2016-06-08T06:13:09Z</Timestamp><Ack xmlns="urn:ebay:apis:eBLBaseComponents">Failure</Ack><CorrelationID xmlns="urn:ebay:apis:eBLBaseComponents">670ff9847524b</CorrelationID><Errors xmlns="urn:ebay:apis:eBLBaseComponents" xsi:type="ebl:ErrorType"><ShortMessage xsi:type="xs:string">DPRP is disabled.</ShortMessage><LongMessage xsi:type="xs:string">DPRP is disabled for this merchant.</LongMessage><ErrorCode xsi:type="xs:token">11586</ErrorCode><SeverityCode xmlns="urn:ebay:apis:eBLBaseComponents">Error</SeverityCode></Errors><Version xmlns="urn:ebay:apis:eBLBaseComponents">106.0</Version><Build xmlns="urn:ebay:apis:eBLBaseComponents">22204133</Build><CreateRecurringPaymentsProfileResponseDetails xmlns="urn:ebay:apis:eBLBaseComponents" xsi:type="ebl:CreateRecurringPaymentsProfileResponseDetailsType"><ProfileID xsi:type="xs:string"></ProfileID><TransactionID xsi:type="xs:string"></TransactionID></CreateRecurringPaymentsProfileResponseDetails></CreateRecurringPaymentsProfileResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>

Php Response

PayPal\PayPalAPI\CreateRecurringPaymentsProfileResponseType Object
(
    [CreateRecurringPaymentsProfileResponseDetails] => PayPal\EBLBaseComponents\CreateRecurringPaymentsProfileResponseDetailsType Object
        (
            [ProfileID] => 
            [ProfileStatus] => 
            [TransactionID] => 
            [DCCProcessorResponse] => 
            [DCCReturnCode] => 
        )

    [Timestamp] => 2016-06-08T06:13:09Z
    [Ack] => Failure
    [CorrelationID] => 670ff9847524b
    [Errors] => Array
        (
            [0] => PayPal\EBLBaseComponents\ErrorType Object
                (
                    [ShortMessage] => DPRP is disabled.
                    [LongMessage] => DPRP is disabled for this merchant.
                    [ErrorCode] => 11586
                    [SeverityCode] => Error
                    [ErrorParameters] => 
                )

        )

    [Version] => 106.0
    [Build] => 22204133
)
rglastra commented 8 years ago

You'll want to get in touch with PayPal Sales or Customer Service to request this feature to be enabled for you. Mention that you're looking to get "Direct Payment - Recurring Payments" enabled. Or if you have an account manager assigned to you, contact them.

sharmavikram commented 8 years ago

Hello Robert,

Thanks for your reply. But reaching out to Paypal support for this particular request seems to be an herculean task. The Sandbox "Help" , "Support" does not allow us to send across the message. Even tried calling to the customer care number but the guy choice to remain silent till the call got disconnected.

Really Disappointed!

Please guide me the best way to make Paypal listen to my simple request.Its my 4th day trying to enable DPRP.

Thanks In Advance Vikram

randstraw commented 8 years ago

@sharmavikram Recurring Payments should already be enabled in the sandbox, so I am looking into this and will update you when I have more information.

randstraw commented 8 years ago

@sharmavikram can you run another test to see if this is enabled in your sandbox account now?

sharmavikram commented 8 years ago

@pp-randy I have tested in two sandbox paypal merchant account

randstraw commented 8 years ago

I looked at the account the error was for that you provided and made some changes. Is DPRP enabled now or do you still get an error?

Just to be sure can you provide the email addresses of both of your merchant accounts in sandbox?

sharmavikram commented 8 years ago

Thanks @pp-randy for your help.Deeply appreciate it.Now, I can successfully complete my recurring transaction. However, if you can educate me on how you rectified it so that I can learn to manage this error myself if it happens in future.

Regards, Vikram

sharmavikram commented 8 years ago

Hello @pp-randy I have sets of issue related to my recurring payment.

  1. My US sandbox merchant account is working properly now but my Singapore sandbox merchant account is not getting upgraded to pro a/c now Below is the screenshot. git
  2. My Hongkong sandbox merchant(PRO) account has the same issue (DPRP not enabled) related to Hong Kong country.
  3. can i have pro account enable for Malaysia else any alternative to activate recurring payment.

Thanks Vikram

randstraw commented 8 years ago

Please see the PayPal Product Matrix here: https://developer.paypal.com/docs/classic/howto_product_matrix/ Indicates Websites Payments Pro is available in US, UK, and Canada.

sharmavikram commented 8 years ago

@pp-randy Thanks for sharing the link. My objective is to except recurring via express checkout (Classic API) and Credit card( REST API) in following countries Singapore, Malaysia, Taiwan, Hongkong and China in there local currency respectively (except China)

Can you please suggest me how can i achieve my objective using Paypal.

Thanks in advance Vikram

randstraw commented 8 years ago

Hi @sharmavikram,

This question might be better answered by the PayPal Sales Team.

sharmavikram commented 8 years ago

Hello @pp-randy i wrote message to PayPal Sales Team. please can you enable sandbox merchant Bussiness account "tpcgmerchant@gmail.com" to "Business Pro account"

Thanks Vikram

randstraw commented 8 years ago

Can you try to toggle Pro again for this account? Can you check the account sandbox notifications as well to see if you need to accept any agreements?

braebot commented 8 years ago

I'm closing this issue as it's an account-specific issue, not SDK related. Thanks for the help everyone!

sandeepwegile commented 7 years ago

Hello Everyone

I'm also experiencing the same issue on one of my US-Business-Pro sandbox account. Whenever I try to use classic NVP api to create a recurring profile for test users under Sandbox environment, I get following error message.

PayPal gateway has rejected request. DPRP is disabled for this merchant (#11586: DPRP is disabled).

I'm using following sandbox account:

rafi@mykoollook.com

Even I've tried with support-facilitator@mykoollook.com, (again business-pro US account), still the same error message.

If at all needed, this sandbox account is under support@mykoollook.com account.

Can anyone please help me out here..!!

Additional Info: We contacted paypal support team and they say that DPRP is enabled for the main account.

Thanks & Regards Sandeep

randstraw commented 7 years ago

@sandeepwegile what was your PayPal Technical Support ticket / reference number?

sandeepwegile commented 7 years ago

Hi @pp-randy

Thanks for replying back. We (In fact our client, who's paypal account is in the question) called Paypal support over telephone. He don't know about the support ticket/reference number. Below is all the info he has,

We just got off the phone with Paypal DPRP is enabled ! They suggested that you go developer.paypal.com and go to search and type in recurring billing and then you can go to manager I hope it works and that's u need please advise regardless... if that's not what u need call ASAP

May be it's the same issue what @sharmavikram had with his sandbox account ?

Awaiting further help from you (and everyone else, who can help me out here... :)

Thanks & Regards Sandeep

randstraw commented 7 years ago

In the future you can reach out to PayPal Technical Support at https://www.paypal-techsupport.com and at the bottom click Contact Support to file a ticket directly.

In either case I enabled DPRP on both rafi@mykoollook.com and support-facilitator@mykoollook.com.

sandeepwegile commented 7 years ago

Thank you so much @pp-randy!

For future technical issues, I'll for sure refer to https://www.paypal-techsupport.com

Thanks & Regards Sandeep

gjimish commented 7 years ago

@pp-randy I am having the same issue. My support ticket number is 170215-000513.

Can you please update for me also?

randstraw commented 7 years ago

@gjimish can you try adding pro to the gmail account now? The first account should be good.

gjimish commented 7 years ago

@pp-randy I am not able to upgrade to "pro". Even if you will activate for my first account, I will be happy :)

randstraw commented 7 years ago

Try it out and let me know. If you need another account, create a business account but make sure you also select to add a bank account, as this helps me out when adding recurring payments :-), and helps you out when adding Pro.

gjimish commented 7 years ago

@pp-randy Thanks for your help. It's working and I am able to create RECURRING PAYMENT PROFILE. However it's not returning the response but I believe it not has to do anything with it.

Thank You So Much!!!!!! :)

randstraw commented 7 years ago

If you get stuck, create a new issue with some example source code and we will try to get it figured out.

Nett commented 7 years ago

Hello, I've created a new merchant sandbox account, upgraded it to PRO, but I'm getting "paypal sandbox enable DPRP for merchant" error. I need to create and manage recurring payments, here is mine sandbox ID - oleg.malij@seosamba.com. Or if it's possible to clean my old merchant sandbox, which is - pros_1308148513_biz@seosamba.com. Could you please help me?

Thank you!

randstraw commented 7 years ago

@Nett I don't see the pro upgrade worked. Does it still give you the option?

Nett commented 7 years ago

Hello @pp-randy , thank you for reply) Yes, it still returns 'DPRP is disabled for this merchant' when try to create recurring payment. Here are the settings for oleg.malij@seosamba.com sandbox account. Account Type: Business-Pro Status: Verified Country: US

Thank you.

randstraw commented 7 years ago

Can you create a new Sandbox Business account? This one does not have an address and most likely had some issues during creation. Use the Developer Dashboard https://developer.paypal.com/developer/accounts/ to create it and submit the Pro request from the profile here on the account as well.

I apologize for the inconvenience.

Nett commented 7 years ago

No problem @pp-randy ) Here is a new one 'oleg.biz@seosamba.com'. And I didn't see any 'address' fields during account creation process. If this one also does not work too, could you please reset/remove all transactions and recurring payments from this account 'pros_1308148513_biz@seosamba.com' ? Due to huge number of operations a 'history' tab under merchant's sandbox returns 500 error. Resetting old one will be much better than having a brand new.

Thank you, Oleg

randstraw commented 7 years ago

@Nett I'm still having issues with your new account's configuration and need to follow up further internally.

Do you already have approval to integrate Direct Payment Recurring Payments on live? If so, I think its best you also open an incident with PayPal Technical Support here https://www.paypal-techsupport.com/app/ask/.

randstraw commented 7 years ago

For Internal Tracking: PPGOPS-12283

Nett commented 7 years ago

Thank you @pp-randy, will continue communicating with support.

kpranav1995 commented 7 years ago

Hello, I need help regarding the implementation of paypal monthly based subscription whenever i try to pay using CC it will show me a error {"name":"DPRP_DISABLED","message":"DPRP is disabled for this merchant.","information_link":"https://developer.paypal.com/docs/api/payments.billing-agreements#errors","debug_id":"a4bfc2119c1e4"} please look at here and help me Thanks

xiaoleih41 commented 7 years ago

I don't think direct credit card processing is available in India. You may change to a US account to do the testing. Also, PayPal has deprecated REST API direct credit card processing. We would you encourage you to use Braintree SDK instead for direct credit card processing.

kpranav1995 commented 7 years ago

I am using the US account and update the sandbox to pro and after that i am still getting the error.

xiaoleih41 commented 7 years ago

Direct credit card processing feature for REST API has been deprecated. Please consider to use Braintree SDK from braintreepayments.com instead for this business feature.

hsharma-lsquared commented 6 years ago

I am getting same issue "DPRP is disabled for this merchant", i already have enabled Pro feature on my Sandbox account (Please check highlighted account in attached image), i am using Billing Plan and Agreement API (REST API) for creating recurring profile with Credit Card.

capture

randstraw commented 6 years ago

@hsharma-lsquared are you approved to use the feature on live? If so, I will certainly enable the sandbox account for you. I don't want you to waste your time if you can't go live with this.

hsharma-lsquared commented 6 years ago

Yes, please enable this feature for highlighted Sandbox account (harish.sharma.paypal@gmail.com),

randstraw commented 6 years ago

Sorry for not seeing the Country. Due to an issue in the sandbox, which I am following up on I cannot add the correct product to Canada accounts. Can you create a US account for testing purposes?

hsharma-lsquared commented 6 years ago

I read somewhere that Payment pro available in accounts which are located in US, UK, or CA, then whats the issue, Can i know?

randstraw commented 6 years ago

@hsharma-lsquared I created a new issue for tracking the issue since I am not able to enable the feature in sandbox https://github.com/paypal/PayPal-REST-API-issues/issues/167

randstraw commented 6 years ago

Locking the thread, please follow https://github.com/paypal/PayPal-REST-API-issues/issues/167 for further updates.