Support » Plugin: Import Members from CSV for Paid Memberships Pro » gateway not used assumes default gateway

  • Resolved Bill Stoltz

    (@billstotlz)


    It looks like you can specify a gateway in the CSV file, but when the order is created it uses the default gateway.

    For example, if you have both paypal and check as valid gateway and PayPal is the default, but you set “check” as the gateway in the CSV file, then all the orders get created with paypal as the gateway.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Thomas S

    (@eighty20results)

    Hi,

    Thanks for reporting this issue.

    When you specify the payment gateway, what string do you use. Also, do you specify the gateway environment (i.e. “live” or “sandbox”)?

    Thread Starter Bill Stoltz

    (@billstotlz)

    Sorry if this was not clear…

    in version 2.17 you only needed membership_gateway and
    membership_subscription_transaction_id to get an order.

    But when I went to version 2.22 I had to have membership_gateway, membership_subscription_transaction_id, membership_payment_transaction_id and membership_gateway_environment.
    Oh and BTW, check the error message if missing membership_gateway_environment I think is says membership_gateway is missing. Took looking at the code to realize I was missing membership_gateway_environment.

    I provided all 4 of these fields

    membership_gateway='check'
    membership_subscription_transaction_id='ab12345'
    membership_payment_transaction_id='cd12345'
    membership_gateway_environment='live'

    and when I go to the order after the import, the Gateway = “paypalexpress”.

    From what I can tell, this is because when you get the MemberOrder, is sets the default gateway. I did not see where this is actually set in the order.
    maybe I missed it, or maybe I am doing something wrong.

    Hopefully this is helpful.
    thanks,
    bill

    Plugin Author Thomas S

    (@eighty20results)

    Thanks for the detailed problem report!

    Your report helped me realize that I could do more to test the gateway information in the import file and that I had made a couple of bad assumptions.

    Between 2.17 and 2.22 I realized that not setting all 4 was going to be a problem for the next IPN/Webhook/Silent Post/etc when it tried to create a new order record. Since – I think(!?!) – the point/intent of importing the subscription_transaction_id and the gateway probably is to continue receiving orders for an existing subscription plan, I wanted to make sure there was enough data in the most recent (imported) order record to successfully do just that.

    Am working on an update now that will let you set the gateway(s) and gateway_environment for/to any of the gateway integrations that are currently supported/active.

    • This reply was modified 5 years, 10 months ago by Thomas S. Reason: Addl. prose about the change from 2.17 -> 2.22
    Thread Starter Bill Stoltz

    (@billstotlz)

    I had not thought about setting up future subscription plans.

    My problem was against my recommendations, the users of the website were taking check and some other payments offline, claiming they were old and could not figure out the website. But then they wanted the online data to be accurate, so they need to input all these entries.

    Since the site does accept checks, it just seemed easy to input everyone using gateway check and set the order status to success and then everything was uploaded and done. I just wanted the orders to be correct.

    Thanks for looking into this. Look forward to the update.

    Plugin Author Thomas S

    (@eighty20results)

    Hi,

    I’ve softened the requirements around order creation and verified that the order now contains the specified (valid) payment gateway integration in the membership_gateway column.

    The valid payment gateway integration values are included in the FAQ.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘gateway not used assumes default gateway’ is closed to new replies.