What's new
Xen Factory

Register today to become a member! Once signed in, you'll be able to start purchasing our products, ask questions, request support and suggest new ideas!

  • This area is dedicated to the support of our xF1 add-ons. For xF2, please use the dedicated area: HERE.

Support Resolved When I click the link on xenforo to view the install instructions it's an error

The guy from paypal is asking details about how its called:

How do you have it set up?
Are you just redirecting people to that URL or are you setting up an API call?
It should not go to the PayPal homepage first so we need to check the integrations to make sure it is set up properly.
Thank you,
Zachary
Global Technical Support
PayPal

I told him its an API call using signature authentication. What else can I show him which would give him an idea on how the API is called?
 
He replied back asking for this:
Could you send me the full request and response strings for each call that you are doing?
It should help me narrow down what the issue may be.

Thank you,
Zachary
Global Technical Support
PayPal

Please advise
 
Hi,

Ok so I checked as I wasn't sure of how the code was and in fact I am using the parallel payment API whatever the condition is (percentage on sale set or not).

I do that because users can donate to the admin on purpose.

The URL called is then:
https://www.paypal.com/webscr&cmd=_ap-payment&paykey=<token>
where <token> is sent by the API.

Clément

Thanks, I'll send this to him, do you have any information I can provide him regarding the request and response strings?
 
You have to activate the debug in the PPConfiguration.php file then once you have done a call you have the debug file marketplace_paypal.log at the root of the forum.
 
You have to activate the debug in the PPConfiguration.php file then once you have done a call you have the debug file marketplace_paypal.log at the root of the forum.

Is this the FINE vs ERROR option? When I have looked at it, it says created successfully or something.
 
Also, if you keep hitting back on the browser, it will work every other time. Click buy, won't work. go back, click buy, works fine. Go back, click buy, won't work. Etc. It continues to repeat the working/not working over and over.
 
It's ERROR you must set.

You are the only one experiencing this so it's odd.
Do you have behavior with the default style ?
 
I just tried with the default theme and it worked the first few times then it started doing the same thing.

EDIT: Might have just been in my head. Used a different web browser, exact same issue.

Code:
PPAPIService: Request: requestEnvelope.errorLanguage=en_US&actionType=PAY&cancelUrl=https%3A%2F%2Fwww.spoolstreet.com%2Fforums%2Fthreads%2Fsell-in-the-classifieds-directly-to-your-paypal-account.1207%2F&currencyCode=USD&feesPayer=EACHRECEIVER&ipnNotificationUrl=https%3A%2F%2Fwww.spoolstreet.com%2Fforums%2Fxfa_fss_payment_callback.php%3Fcustom%3D3&receiverList.receiver(0).amount=1.99&receiverList.receiver(0).email=tyler%40spoolstreet.com&receiverList.receiver(0).paymentType=GOODS&reverseAllParallelPaymentsOnError=1&returnUrl=https%3A%2F%2Fwww.spoolstreet.com%2Fforums%2Fthreads%2Fsell-in-the-classifieds-directly-to-your-paypal-account.1207%2Fxfa-fss-purchase-done
PPHttpConnection: Connecting to https://svcs.paypal.com/AdaptivePayments/Pay
PPHttpConnection: Payload requestEnvelope.errorLanguage=en_US&actionType=PAY&cancelUrl=https%3A%2F%2Fwww.spoolstreet.com%2Fforums%2Fthreads%2Fsell-in-the-classifieds-directly-to-your-paypal-account.1207%2F&currencyCode=USD&feesPayer=EACHRECEIVER&ipnNotificationUrl=https%3A%2F%2Fwww.spoolstreet.com%2Fforums%2Fxfa_fss_payment_callback.php%3Fcustom%3D3&receiverList.receiver(0).amount=1.99&receiverList.receiver(0).email=tyler%40spoolstreet.com&receiverList.receiver(0).paymentType=GOODS&reverseAllParallelPaymentsOnError=1&returnUrl=https%3A%2F%2Fwww.spoolstreet.com%2Fforums%2Fthreads%2Fsell-in-the-classifieds-directly-to-your-paypal-account.1207%2Fxfa-fss-purchase-done
PPHttpConnection: Adding header X-PAYPAL-REQUEST-DATA-FORMAT: NV
PPHttpConnection: Adding header X-PAYPAL-RESPONSE-DATA-FORMAT: NV
PPHttpConnection: Adding header X-PAYPAL-DEVICE-IPADDRESS: 104.225.250.98
PPHttpConnection: Adding header X-PAYPAL-REQUEST-SOURCE: adaptivepayments-php-sdk-2.8.118
PPHttpConnection: Adding header User-Agent: PayPalSDK/adaptivepayments-php-sdk 2.8.118 (lang=PHP;v=5.6.27;bit=64;os=Linux_2.6.32-642.6.2.el6.x86_64;machine=x86_64;openssl=1.0.1e-fips;curl=7.19.7)
PPHttpConnection: Adding header X-PAYPAL-APPLICATION-ID: APP-9LA77688BW715371U
PPHttpConnection: Adding header X-PAYPAL-SECURITY-USERID: admin_api1.spoolstreet.com
PPHttpConnection: Adding header X-PAYPAL-SECURITY-PASSWORD: 2VJS6UKSNZJK8PGL
PPHttpConnection: Adding header X-PAYPAL-SECURITY-SIGNATURE: AFcWxV21C7fd0v3bYYYRCpSSRl31ABDK9WWTSz5vGmJ9kSY9.exje2Ka
PPAPIService: Response: responseEnvelope.timestamp=2017-01-20T11%3A07%3A44.162-08%3A00&responseEnvelope.ack=Success&responseEnvelope.correlationId=60b26d18f14df&responseEnvelope.build=29031018&payKey=AP-0F017570NH624013P&paymentExecStatus=CREATED
 
Finally... They figured it out:

You need to replace it with a ? instead of &

I tested this myself, visiting the URL repetitively results consistently in arriving at the check out page. I assume this change needs to be done in the files, could you tell me which file to edit? Thanks

This is what they said:

Thank you for contacting PayPal Merchant Technical Services.

I think we figured out what the issue is.
In the URL try replacing the '&' with '?' and then attempt transaction and let me know.
https://www.paypal.com/webscr&cmd=_ap-payment&paykey=AP-4HK36233SH952733U

https://www.paypal.com/webscr?cmd=_ap-payment&paykey=AP-4HK36233SH952733U
 
Ah :)

Yes that would be in the file library/XFA/ForumSales/Extends/ControllerPublic/Thread.php on line 271.

At some point I'll change the payment API anyways as the Adaptive payment API is deprecated.

Clément
 
Unless you have a server cache for files no.

It was my mistake. I made the changes in my test forum. It works now.

Also, I'll be purchasing your marketplace addon as well. Question, would you be able to add some kind of invoicing feature or integration with shopify? Many of my vendors use shopping cart systems like this and like to retain their existing invoicing capability.
 
Top