Maximum number of authorization allowed for the order is reached

S12345
Contributor
Contributor

Hello,

We are working on Sandbox account to integration with Paypal Express checkout. We are using Custom Order process and need to do multiple auth/settle for one order.

When I try to do second authorization for my custom order, I am getting error below. Can you help me what am I doing wrong?

Error Msg: Maximum number of authorization allowed for the order is reached

Here is the API request calls I am making-

1.
curl https://api-3t.sandbox.paypal.com/nvp \
-s \
--insecure \
-d USER=sj-facilitator_api1.agilcommerce.com \
-d SIGNATURE=AFcWxV21C7fd0v3bYYYRCpSSRl31AvLW.D2fIVZH9ws2zETNn1Hbv6x. \
-d METHOD=SetExpressCheckout \
-d VERSION=95 \
-d PAYMENTREQUEST_0_PAYMENTACTION=Order \
-d PAYMENTREQUEST_0_AMT=119.95 \
-d PAYMENTREQUEST_0_CURRENCYCODE=USD \
-d RETURNURL=http://www.example.com/success.html \
-d CANCELURL=http://www.example.com/cancel.html

2.
https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=EC%2d9DP667239P366982S

3.
curl https://api-3t.sandbox.paypal.com/nvp \
-s \
--insecure \
-d USER=sj-facilitator_api1.agilcommerce.com \
-d SIGNATURE=AFcWxV21C7fd0v3bYYYRCpSSRl31AvLW.D2fIVZH9ws2zETNn1Hbv6x. \
-d METHOD=GetExpressCheckoutDetails \
-d VERSION=95 \
-d TOKEN=EC-9DP667239P366982S


4.
setOrder (get payerid from above)


curl https://api-3t.sandbox.paypal.com/nvp \
-s \
--insecure \
-d USER=sj-facilitator_api1.agilcommerce.com \
-d SIGNATURE=AFcWxV21C7fd0v3bYYYRCpSSRl31AvLW.D2fIVZH9ws2zETNn1Hbv6x. \
-d METHOD=DoExpressCheckoutPayment \
-d VERSION=95 \
-d TOKEN=EC-9DP667239P366982S \
-d PAYERID=EJH4Q3SLZAE7C \
-d PAYMENTREQUEST_0_PAYMENTACTION=Order \
-d PAYMENTREQUEST_0_AMT=119.95 \
-d PAYMENTREQUEST_0_CURRENCYCODE=USD


5.
doAuth (get PAYMENTINFO_0_TRANSACTIONID from above)

curl https://api-3t.sandbox.paypal.com/nvp \
-s \
--insecure \
-d USER=sj-facilitator_api1.agilcommerce.com \
-d SIGNATURE=AFcWxV21C7fd0v3bYYYRCpSSRl31AvLW.D2fIVZH9ws2zETNn1Hbv6x. \
-d METHOD=DoReAuthorization \
-d VERSION=95 \
-d TRANSACTIONID=O-2WK425820M4453342 \
-d AMT=20 \
-d CURRENCYCODE=USD

6.
doSettle (get TRANSACTIONID from above and pass as authid)

curl https://api-3t.sandbox.paypal.com/nvp \
-s \
--insecure \
-d USER=sj-facilitator_api1.agilcommerce.com \
-d PWD=4FUQB7SYGF2HWHG6 \
-d SIGNATURE=AFcWxV21C7fd0v3bYYYRCpSSRl31AvLW.D2fIVZH9ws2zETNn1Hbv6x. \
-d METHOD=DoCapture \
-d VERSION=95 \
-d AUTHORIZATIONID=6YT40041B01900236 \
-d AMT=19.95 \
-d CURRENCYCODE=USD \
-d COMPLETETYPE=NotComplete

7.
doAuth (get PAYMENTINFO_0_TRANSACTIONID from above)

curl https://api-3t.sandbox.paypal.com/nvp \
-s \
--insecure \
-d USER=sj-facilitator_api1.agilcommerce.com \
-d SIGNATURE=AFcWxV21C7fd0v3bYYYRCpSSRl31AvLW.D2fIVZH9ws2zETNn1Hbv6x. \
-d METHOD=DoReAuthorization \
-d VERSION=95 \
-d TRANSACTIONID=O-2WK425820M4453342 \
-d AMT=20 \
-d CURRENCYCODE=USD

 

Login to Me Too
1 ACCEPTED SOLUTION

Accepted Solutions
Solved

MTS_Justin
Moderator
Moderator
Hi,

For sandbox, you need to request it from us directly. It's called the child auth period.

If you need to do it again in the future, submit a request via our support portal (https://www.paypal.com/mts) and include the email address of the sandbox account and that you would like the max allowed child auth period extended.

Note : We can only make this change on sandbox accounts

Was my post helpful? If so, please give me a kudos!

View solution in original post

Login to Me Too
9 REPLIES 9

Quandary
Advisor
Advisor

Your chances of getting help with Sandbox and PayPal Express coding questions are much better if you go <snip> and/or <snip>.

 

** Edited by moderator **

 

If you require support, please post in these forums - They are actively monitored

Login to Me Too

MTS_Justin
Moderator
Moderator
Hi @S12345

Can you please send me the email address for your sandbox account ?

I've attempted a look up of "sj-facilitator@agilcommerce.com" but there is no account found. I need to toggle the max allowed authorizations, as by default, the max allowed is "1".

Was my post helpful? If so, please give me a kudos!
Login to Me Too

S12345
Contributor
Contributor

Thanks for reply, I am very new to this Paypal community and wasnt sure if I should share full login/passwords in posts.

 

Can you provide me steps where can I change this setup? The link clearly says that I can repeat step 5 and 6 to do more than 1 auth/settle.

 

https://developer.paypal.com/docs/classic/express-checkout/ht_ec-orderAuthPayment-curl-etc/

 

 

Login to Me Too

MTS_Justin
Moderator
Moderator
Hello,

You cannot change the setup from a consumer facing view, only PayPal staff can change this setting.

You don't need to send me the password for the sandbox account, just the email address and I'll make the change for you

Was my post helpful? If so, please give me a kudos!
Login to Me Too

S12345
Contributor
Contributor

I see, please make the change for my email -  'srini.joshi-facilitator'  the domain is at 'agilcommerce.com' .

 

- We'll need to make the new auth/re-auth calls in following manner. Can you check if specific change required to support this as well?

 

1. Set Order for $500

2. Do Auth for $500

3. Do Settle for $200

4. Do Auth for $50

5. Do Settle for $50

6. Do Auth for $250

7. Do Settle for $250

 

Login to Me Too

MTS_Justin
Moderator
Moderator
Hello,

I've made that change to your sandbox account.

No other specific changes are needed to implement multiple child auths

Was my post helpful? If so, please give me a kudos!
Login to Me Too

S12345
Contributor
Contributor

Thanks , that resolved the issue. Can you tell me what is name of this flag/feature, so next time I can simply ask them to turn on this flag/feature and dont have to get into all this details.

Login to Me Too
Solved

MTS_Justin
Moderator
Moderator
Hi,

For sandbox, you need to request it from us directly. It's called the child auth period.

If you need to do it again in the future, submit a request via our support portal (https://www.paypal.com/mts) and include the email address of the sandbox account and that you would like the max allowed child auth period extended.

Note : We can only make this change on sandbox accounts

Was my post helpful? If so, please give me a kudos!
Login to Me Too

sourabhjains
Contributor
Contributor

I want to add max allowed authorization support on my sandbox merchant account with email-Id:

<removed>

<removed>

<removed>

 

Please configure this setting for my sandbox accounts.

 

Question: Are multiple authorizations work well with the production account or we have configured this setting on the production account as well?

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.