Jump to content
Latest News: (loading..)
Mikepo

one paypal acouunt, two shops on different domains

Recommended Posts

Hi,
I wanting to have two shops using the same paypay account.  
Reason, the shops are related and can operate under the same business name and bank account.

Using stripe is simple, you can have two accounts under the umbrella account.

With Paypal, you can assign another email address and receive payment on both emails, 
but the return URL is set in stone in the PayPal account. So both shops will return to the same return URL.

Looking at the help pages you can switch that off and set the return URL for individual transactions, 
by including the return variable in the HTML form: 

<INPUT TYPE="hidden" NAME="return" value="The-Page-On-Your-Site-To-Which-Buyer-Returns;">

Has anyone done this with success?

If so, can they advise how to do it?

Mike


osC BS gold live - osC CE in development (awesome)

Share this post


Link to post
Share on other sites

The correct return URL is passed for each store in the PayPal payment modules and overwrite the setting in your payPal account. Same for all other store URLs like cancel etc.

So you do not need to worry about. it will just work.

Share this post


Link to post
Share on other sites

so you are saying, that you don't need to set the return URL in the PayPal account, as the osCommerce Paypal module already defines the return URL based upon the domain name?


osC BS gold live - osC CE in development (awesome)

Share this post


Link to post
Share on other sites

@Mikepo

What I *think* he is saying is ... if your return URL in the Paypal account has your domain name, than you need to use your code example, and include the domain name (as well as the path and file name to return to) in the value=" " definition.

M


If you are running the "official" osC 2.3.4 or 2.3.4.1 download, your installation is obsolete! Get the latest community-supported responsive "Frozen" release here

Share this post


Link to post
Share on other sites
24 minutes ago, Mikepo said:

so you are saying, that you don't need to set the return URL in the PayPal account, as the osCommerce Paypal module already defines the return URL based upon the domain name?

Yes, it's this.

example paypal_standard.php (other modules do the same):

      $parameters = array('cmd' => '_cart',
...
                          'notify_url' => tep_href_link('ext/modules/payment/paypal/standard_ipn.php', (isset($ipn_language) ? 'language=' . $ipn_language : ''), 'SSL', false, false),
...
						  'return' => tep_href_link('checkout_process.php', '', 'SSL'),
                          'cancel_return' => tep_href_link('checkout_payment.php', '', 'SSL'),

tep_href_link function will produce the correct URL of the store's domain.

Edited by raiwa

Share this post


Link to post
Share on other sites

Yep @raiwa is right, just checked, and it returns to the create domain.  However, the name of the link(not the actual url) to cancel the payment refers the the  primary webshop1, not the secondary webshop2.  Can the name of the secondary webshop2 be defined in paypal?

Edited by Mikepo

osC BS gold live - osC CE in development (awesome)

Share this post


Link to post
Share on other sites

I'm using PayPal Standard.

When I'm transferred to PayPal, their site states the name of Webshop1(the primary account), and the link to cancel also states the name of Webshop1 (the URL is correct though, Webshop2)

So, can PayPal show the name for Webshop2 instead?


osC BS gold live - osC CE in development (awesome)

Share this post


Link to post
Share on other sites

Do you mean the Cancel link shows correct like "Cancel and return to Webshop2" But the name in the header area is wrong?

Then to show the correct name in the header area you have to define a template for the second store and set it in the pay pal App settings in your store as page style.

I'm using paypal express and all works ok there.

Share this post


Link to post
Share on other sites

yep, understand correctly.

So were do I define a template and set it in the pay palApp settings in my store as page style?


osC BS gold live - osC CE in development (awesome)

Share this post


Link to post
Share on other sites

OK, I've looked, searched via google, and can't find how to define a template in PayPal to use as a Page Style.

The Page Style in the oscommerce PayPal App defaults to 'PalPay', I believe this is what has to be changed to match the template in PayPal.  But where do I create the template ?

I need this change, as I want to use one PayPal Account with two shops. The Page Style, once defined, will show the correct shop details during the payment process through PayPal.

Does anyone do this using PayPal Standard?

 


osC BS gold live - osC CE in development (awesome)

Share this post


Link to post
Share on other sites

 

From PayPal forum

"In the past, there was the optional variable "page_style" which you could use to call out a custom payment page style for checkout pages, by using this variable and it's value, you could have a different page style for different items.   However, the variable was deprecated (phased out) back in 2016. (Deprecated variables are ignored when you pass them to PayPal.)"

 

I remember I had to change the default page style/name/logo  in PayPal settings so it could do for both of my sites.

Edited by douglaswalker

Share this post


Link to post
Share on other sites

@douglaswalker, that seems like a workaround: change the PayPal account name and logo to suit both shopping sites.

Thanks


osC BS gold live - osC CE in development (awesome)

Share this post


Link to post
Share on other sites
5 hours ago, douglaswalker said:

 

From PayPal forum

"In the past, there was the optional variable "page_style" which you could use to call out a custom payment page style for checkout pages, by using this variable and it's value, you could have a different page style for different items.   However, the variable was deprecated (phased out) back in 2016. (Deprecated variables are ignored when you pass them to PayPal.)"

 

I remember I had to change the default page style/name/logo  in PayPal settings so it could do for both of my sites.

@douglaswalker

Thanks for the update. Wasn't aware of this.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×