Paypal Adaptive

  • Posts: 61
  • Thank you received: 2
10 years 9 months ago #114897

I have created a New App for this E-Commerce System. I had a paypal adaptive working on a previous E-Commerce web system. I am trying to get it to work on Hika Market. I have everything setup properly on my App end as well as the Live APP creds. I can't seem to figure out why i am receiving a "The required X-PAYPAL-APPLICATION-ID header is missing from the HTTP request" Error, Any help?

Last edit: 10 years 9 months ago by xsbucks.

Please Log in or Create an account to join the conversation.

  • Posts: 26000
  • Thank you received: 4004
  • MODERATOR
10 years 9 months ago #114899

Hi,

I updated the HikaMarket 1.2.0 package with some modifications in the Paypal Adaptive plugin.
Please redownload HikaMarket 1.2.0 and the option "Application Id" should be display in the configuration screen.
With the sandbox, the application id is forced to: "APP-80W284485P519543T".

Sorry for the inconvenient.


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 61
  • Thank you received: 2
10 years 9 months ago #114914

Perfect, As always thanks Jerome. I am on the last page of checkout receiving a "User is not allowed to perform this action" I am assuming its because the APP is Conditionally approved?

Please Log in or Create an account to join the conversation.

  • Posts: 26000
  • Thank you received: 4004
  • MODERATOR
10 years 9 months ago #114916

Hi,

Your paypal account must be a business account with a verified status.
I will add some support for error messages, you have the first part of the error but there is an extra parameter which indicate the action which is not allowed.

Please check the payment mode you use (parallel, chained). It is possible that you have this problem:

This error occurs when you have configured the module to use "Chained Payment" mode, but you have not applied "Advanced Service" for Paypal Application ID.
When you apply for a Paypal Application ID, you are required to choose the level of service. You need to choose Advanced Service to be able to use Chained Payment. You can only use Parallel payments if your choice of Application is for Basic Service. Change the module to use "Parallel Payment" instead of "Chained Payment" mode should resolve this error.


Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 61
  • Thank you received: 2
10 years 9 months ago #114930

Thanks Jerome,

I have setup with "Advanced" I am using a Verified Business Account, I am running Chained in the module and Chained in the advanced setup of my App. I installed the updated version of Hikamarket, but it now shows 2 adaptive plugins.

Please Log in or Create an account to join the conversation.

  • Posts: 61
  • Thank you received: 2
10 years 9 months ago #114937

Okay , I have setup a separate App for parallel and it works, but i have an interesting problem, Might be in the configuration on my Hika side. Let me kknow if you need a separate thread for this. I have an online document that sells for $8.00, I have a 40% commission setup in the config. On Checkout, It labels two separate payments now. One for the intial $8.00 and a $4.20 charge for Primary Receiver. Any ideas?

Please Log in or Create an account to join the conversation.

  • Posts: 26000
  • Thank you received: 4004
  • MODERATOR
10 years 9 months ago #115048

Hi,

Where does it label two separate payments ?
It is complicated to understand your problem. Is it possible to have more details and maybe some screenshot of your configuration ?
I don't understand of what your are talking about exactly.

Thanks,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 61
  • Thank you received: 2
10 years 9 months ago #115125

Thanks Jerome, The extra payment is on the final checkout, It adds it on the Paypal checkout.

If you want credentials into the backend let me know and i will skype them over to you.

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 26000
  • Thank you received: 4004
  • MODERATOR
10 years 9 months ago #115130

Hi,

Ok, I got it.
There is a difference of the data send between "chained" and "parallel" modes.
In the plugin, please replace this code:

			$full_amount = round($order->cart->full_total->prices[0]->price_value_with_tax, (int)$this->currency->currency_locale['int_frac_digits']);

			$e = array(
				'email' => $this->payment_params->email,
				'amount' => $full_amount
			);
By:
			$full_amount = round($order->cart->full_total->prices[0]->price_value_with_tax, (int)$this->currency->currency_locale['int_frac_digits']);

			if($this->payment_params->payment_mode != 'chained') {
				foreach($suborders as $k => $suborder) {
					if($suborder->order_vendor_id <= 1)
						continue;
					$full_amount -= hikashop_toFloat($suborder->order_vendor_price);
				}
			}

			$e = array(
				'email' => $this->payment_params->email,
				'amount' => $full_amount
			);
It will fix the amount value in the parallel mode.
This part of code was commented in my plugin because it generated an error in chained payment. But I didn't realized that it was still useful in parallel mode.

Thanks for the feedback !

PS: I will update the package as soon as possible


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
Last edit: 10 years 9 months ago by Jerome.

Please Log in or Create an account to join the conversation.

  • Posts: 61
  • Thank you received: 2
10 years 9 months ago #115134

Haha Jerome do you ever sleep??
That worked perfectly. Thanks for that.

Do you happen to have a code to not show the breakdown on that same checkout window, but to just show a final total and have the parallel separate the payments in stealth? I would like to have the end user not to be able to see the commission breakdown.

Thanks Jerome.

Please Log in or Create an account to join the conversation.

  • Posts: 26000
  • Thank you received: 4004
  • MODERATOR
10 years 9 months ago #115135

Hi,

If you don't want that the final customer see the commission, you have to use the "chained" mode.
At this moment, the customer will just see one price (the order total) and won't see the vendor's totals.

You can see the illustrations in the Paypal Adaptive documentation (parallel / chained)
developer.paypal.com/webapps/developer/d...ation-guide/APIntro/

You're welcome

PS: Yes sometimes I sleep


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
The following user(s) said Thank You: xsbucks

Please Log in or Create an account to join the conversation.

Moderators: Obsidev
Time to create page: 0.074 seconds
Powered by Kunena Forum