Advanced question: entering paypal email at sub-blog signup/registration stage

We are building a WPMU site with MarketPress. We will request sub blog owners (store owners) to enter their paypal account email in the signup form (need to customize the original WP signup form). Can anyone help us with the following questions:

1. Which database table does MarketPress save the paypal email to? (so, we can code the customized signup form to save the user entry directly to the database).

2. Do you see any danger or potential problem of doing so? If so, how to avoid it?

We are doing this to avoid store owners "forgetting" to enter their payment info after activating their sub-blog account since there is no reminder to ask them to enter this important information later. So, we'd rather require them to enter the paypal account email at the sign up process.

Thank you for reading my questions :slight_smile:

  • DavidM
    • DEV MAN’s Mascot

    Hi winning,

    Best place to find that would be in the PayPal Express gateway code, which references the specific merchant email via the following:
    $blog_settings['gateways']['paypal-express']['merchant_email']

    And of course, that's an array that's grabbed with the following:
    $blog_settings = get_option('mp_settings');

    So that email should be in an array in mp_settings.

    I don't see any issues with auto-adding a PayPal account in there based on the email of the user creating the respective site, except that you'll need to make sure the user has a PayPal account with that email.

    -David

  • winning
    • The Incredible Code Injector

    Hi David,

    Thank you for your prompt reply.

    We will be using the Chained Payment mode, instead of the PayPal Express. Should I still using the same PayPal Express code?

    We will have a specific field for users to enter PayPal account email in the registration form, assuming PayPal email account is different from the sub-blog admin user email address. Shall this approach address your only concern.

    So, now we just need to figure out where does MarkerPress store the payPal account email for the Chained Payment mode. Can you advise?

    Thank you :slight_smile:

  • Mason
    • DEV MAN’s Sidekick

    Hiya,

    As we haven't heard back from you we're going to assume the problem was sorted out and mark this ticket as resolved.

    If it wasn't resolved, or you have any more questions related to this thread please feel free to post them below and tick the 'Mark as Not Resolved (re-open)' box below the post area (or else we'll miss it!)

    Otherwise, thanks for using the forums, and for being a member of WPMU DEV, it's a pleasure to help you out and we look forward to being of assistance in the future.

    Thanks

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.