WordPress Affiliate Manager › Forums › Affiliate Manager Plugin › Stripe checkout messed up affiliate rewarding
Tagged: payments
- This topic has 11 replies, 2 voices, and was last updated 3 years, 2 months ago by
Shadow Labs.
-
AuthorPosts
-
November 23, 2022 at 11:02 pm #7931
growup
ParticipantHi guys, so basically long story short:
I am using paid membership pro with stripe. Everything was working just fine as long as I had the checkout on my page.
But because I couldn’t find any integration with invoicing, the support of pmp offered me to activate stripe checkout.
(Client after choosing his plan gets redirected to stripe to finish the payment).Now, into the debug page the system can actually without any problem recognise the payments but it cannot adjust the affiliate id. One important note here. By using stripe checkout it creates 2 orders for a client, one as a token and one as a successful payment.
Here is the one of the affiliates links:
https://growupsession.com/konto/wybierz-plan-special/?wpam_id=1Here is a short debug:
11/23/2022 5:41 PM] – SUCCESS : Paid Membership Pro Integration – handling pmpro_updated_order hook
[11/23/2022 5:41 PM] – SUCCESS : Paid Membership Pro Integration – payment_type: Stripe – card, status: success, txn_id: 59953EF5BD, amount: 99
[11/23/2022 5:41 PM] – SUCCESS : Paid Membership Pro Integration – Tracking data is not present. This is not an affiliate sale
[11/23/2022 5:41 PM] – SUCCESS : Paid Membership Pro Integration – wpam_pmpro_after_checkout() function, user id: 990195 and affiliate id:
[11/23/2022 5:41 PM] – SUCCESS : Paid Membership Pro Integration – wpam_pmpro_after_checkout() function, affiliate id is empty so no action is necessary.
[11/23/2022 5:52 PM] – SUCCESS : Paid Membership Pro Integration – wpam_pmpro_add_order() function, affiliate id: 0, order id: 48905437A1
[11/23/2022 5:54 PM] – SUCCESS : Paid Membership Pro Integration – wpam_pmpro_add_order() function, affiliate id: 0, order id: 72D5C14034
[11/23/2022 6:18 PM] – SUCCESS : Paid Membership Pro Integration – wpam_pmpro_add_order() function, affiliate id: 0, order id: 6E9E8B729D
[11/23/2022 6:35 PM] – SUCCESS : Paid Membership Pro Integration – wpam_pmpro_add_order() function, affiliate id: 0, order id: FCACEB9E14
[11/23/2022 6:38 PM] – SUCCESS : Paid Membership Pro Integration – handling pmpro_updated_order hook
[11/23/2022 6:38 PM] – SUCCESS : Paid Membership Pro Integration – payment_type: Stripe – card, status: success, txn_id: FCACEB9E14, amount: 99
[11/23/2022 6:38 PM] – SUCCESS : Paid Membership Pro Integration – Tracking data is not present. This is not an affiliate sale
[11/23/2022 6:38 PM] – SUCCESS : Paid Membership Pro Integration – wpam_pmpro_after_checkout() function, user id: 990197 and affiliate id:
[11/23/2022 6:38 PM] – SUCCESS : Paid Membership Pro Integration – wpam_pmpro_after_checkout() function, affiliate id is empty so no action is necessary.
[11/23/2022 8:06 PM] – SUCCESS : Paid Membership Pro Integration – wpam_pmpro_add_order() function, affiliate id: 0, order id: 8227137D54
[11/23/2022 8:07 PM] – SUCCESS : Paid Membership Pro Integration – wpam_pmpro_add_order() function, affiliate id: 0, order id: 26207A9A45
[11/23/2022 8:09 PM] – SUCCESS : Paid Membership Pro Integration – handling pmpro_updated_order hook
[11/23/2022 8:09 PM] – SUCCESS : Paid Membership Pro Integration – payment_type: Stripe – card, status: success, txn_id: 8227137D54, amount: 99
[11/23/2022 8:09 PM] – SUCCESS : Paid Membership Pro Integration – Tracking data is not present. This is not an affiliate sale
[11/23/2022 8:09 PM] – SUCCESS : Paid Membership Pro Integration – wpam_pmpro_after_checkout() function, user id: 990172 and affiliate id:
[11/23/2022 8:09 PM] – SUCCESS : Paid Membership Pro Integration – wpam_pmpro_after_checkout() function, affiliate id is empty so no action is necessary.
[11/23/2022 8:10 PM] – SUCCESS : Paid Membership Pro Integration – handling pmpro_updated_order hook
[11/23/2022 8:10 PM] – SUCCESS : Paid Membership Pro Integration – payment_type: Stripe – card, status: success, txn_id: 26207A9A45, amount: 99
[11/23/2022 8:10 PM] – SUCCESS : Paid Membership Pro Integration – Tracking data is not present. This is not an affiliate sale
[11/23/2022 8:10 PM] – SUCCESS : Paid Membership Pro Integration – wpam_pmpro_after_checkout() function, user id: 990198 and affiliate id:
[11/23/2022 8:10 PM] – SUCCESS : Paid Membership Pro Integration – wpam_pmpro_after_checkout() function, affiliate id is empty so no action is necessary.
[11/23/2022 8:34 PM] – SUCCESS : Paid Membership Pro Integration – wpam_pmpro_add_order() function, affiliate id: 0, order id: C50FEAA025
[11/23/2022 8:35 PM] – SUCCESS : Paid Membership Pro Integration – handling pmpro_updated_order hook
[11/23/2022 8:35 PM] – SUCCESS : Paid Membership Pro Integration – payment_type: Stripe – card, status: success, txn_id: C50FEAA025, amount: 99
[11/23/2022 8:35 PM] – SUCCESS : Paid Membership Pro Integration – Tracking data is not present. This is not an affiliate sale
[11/23/2022 8:35 PM] – SUCCESS : Paid Membership Pro Integration – wpam_pmpro_after_checkout() function, user id: 990199 and affiliate id:
[11/23/2022 8:35 PM] – SUCCESS : Paid Membership Pro Integration – wpam_pmpro_after_checkout() function, affiliate id is empty so no action is necessary.
[11/23/2022 9:04 PM] – SUCCESS : Paid Membership Pro Integration – wpam_pmpro_add_order() function, affiliate id: 0, order id: 285F59E3E2
[11/23/2022 9:46 PM] – SUCCESS : Paid Membership Pro Integration – wpam_pmpro_add_order() function, affiliate id: 0, order id: 80C77B95CB
[11/23/2022 9:47 PM] – SUCCESS : Paid Membership Pro Integration – wpam_pmpro_add_order() function, affiliate id: 0, order id: 254A682FF9
[11/23/2022 10:16 PM] – SUCCESS : Paid Membership Pro Integration – wpam_pmpro_add_order() function, affiliate id: 0, order id: BC047B107D
[11/23/2022 10:23 PM] – SUCCESS : Paid Membership Pro Integration – wpam_pmpro_add_order() function, affiliate id: 0, order id: A0549FA567
[11/23/2022 10:41 PM] – SUCCESS : Paid Membership Pro Integration – wpam_pmpro_add_order() function, affiliate id: 0, order id: 0E47DF8610
[11/23/2022 10:43 PM] – SUCCESS : Paid Membership Pro Integration – handling pmpro_updated_order hook
[11/23/2022 10:43 PM] – SUCCESS : Paid Membership Pro Integration – payment_type: Stripe – card, status: success, txn_id: 0E47DF8610, amount: 99
[11/23/2022 10:43 PM] – SUCCESS : Paid Membership Pro Integration – Tracking data is not present. This is not an affiliate sale
[11/23/2022 10:43 PM] – SUCCESS : Paid Membership Pro Integration – wpam_pmpro_after_checkout() function, user id: 990202 and affiliate id:
[11/23/2022 10:43 PM] – SUCCESS : Paid Membership Pro Integration – wpam_pmpro_after_checkout() function, affiliate id is empty so no action is necessary.
[11/23/2022 10:48 PM] – SUCCESS : Aplikacja partnera na GrowUp Session
[11/23/2022 10:48 PM] – SUCCESS : Sending an email to[email protected]
[11/23/2022 10:48 PM] – SUCCESS : Email was sent successfully by WordPressI tried switching back and forth the addons but it turns out the problem is with the stripe checkout.
If I will change the checkout to normal (via site) it works perfectly fine.Any ideas/thoughts? Could it be that stripe creates 2 seperate order for one client? But wpam debug picks both of orders for each client without any problem. I had 20+ clients and I cannot figure out who invited who at this point.
November 23, 2022 at 11:04 pm #7932growup
Participantgrowupsession. com/konto/wybierz-plan-special/?wpam_id=1
the link again without the space before com
November 23, 2022 at 11:08 pm #7933growup
ParticipantOh and one more thing, I must have stripe checkout for the invoices. We are using it in EU where we have to send everything to our accountant, so I cannot disables stripe checkout. How can we fix this bug here?
Huge thanks in advance
November 24, 2022 at 4:58 am #7934Shadow Labs
Keymaster@growup, Is Paid Memberships Pro saving any user data or creating a new order before redirecting to the Stripe page?
November 25, 2022 at 5:22 am #7935growup
ParticipantI think so.
Had a client payment on stripe at 11:49
Token details created on pmp at 11:45
While paid status was visible on pmp at 11:47And as we are on it. WPAM gave commision to someone (affiliate) from a previous purchase (old customer that was going to be charged again in two days) (old client – before stripe checkout was working – that’s why it works i think).
But that commision was given on a “token” order which was not even paid either visible on stripe.
(Was a client that was going to be charged in 2 days from now).Update: Still wpam can’t manage itself on finding the affiliate id – cookies and click tracking work perfectly, saved me – I could managed to find by IP who’s was brought by whom.
I now that stripe checkout is on beta but if you can guys help me, I think many people may find this helpful. Thank you!!
November 25, 2022 at 5:31 am #7939growup
ParticipantBTW. just to help you understand more.
1 Client enters the link, picks a plan, goes to checkout (on our site)
2 Enter username/password/email
3 Accepts the terms
4 Click continue
5 AT THAT POINT HE GETS TRANSFERED TO STRIPE
6 Enters card details
7 Adress
8 And pays for the planMeanwhile pmp i think creates a token for the client after pressing continue on step 3 and a paid one after a successful payment. Hard to understand how it works 100%
UPDATE:
Found that on pmp site – TOKEN STATUSThis order status means the user completed the Membership Checkout form on your site, clicked to complete payment via PayPal Express, but did not return.
For new members, the user account has not yet been created during this step. An order in “token” status will show the Username for a non-existing user as [none]. If the user completing checkout was logged in to an existing account (performing a renewal, upgrade, returning, etc.), the order for this attempted checkout will list the correct “Username”.
As the site administrator, you may want to reach out directly to the user and gather information about why they decided not to complete the order in an attempt to recover the sale.
Doesnt make sense why Stripe checkout uses that. Maybe to create an accout for the client to login back if payment fails so he can try again?
November 27, 2022 at 5:04 am #7943Shadow Labs
Keymaster@growup, Can you please contact Paid Memberships Pro to see what action hook is run after the checkout button is clicked (before the user is redirected to Stripe)? We have checked their documentation but could not find anything related to this checkout method. Our plugin already uses some of the action hooks to save additional metadata to orders. According to the log, none of them was run.
December 2, 2022 at 7:42 pm #7953growup
ParticipantUpdate: I posted the answer that pmp provided in a different post yesterday but it is showing as “awaiting moderation”.
I guess you guys are working on it on the side but I just want to make sure that you got it.
Is everything you need provided? Or should I send it once more?
Thank you in advance 🙂
December 3, 2022 at 6:05 am #7950growup
ParticipantSorry for the late response, being waiting for them to respond.
Here what they sent me:“They can look at our open source repository here, and they can find specific filters and hooks in the Stripe file.”
here:
https://github.com/strangerstudios/paid-memberships-pro/search?q=action+hook+after+the+checkout+buttonStripe file.:
https://github.com/strangerstudios/paid-memberships-pro/blob/3cdd5a69144d8aa319c8f2f0fe90bab408779787/classes/gateways/class.pmprogateway_stripe.php#L137February 10, 2023 at 6:39 pm #8034growup
ParticipantDo we have any updates on this topic? For the past two months I am adding every person manually, as the system doesn’t even remembers previous added affiliates I have to do that every month for each person that is new + renews the sub
February 13, 2023 at 8:15 am #8042Shadow Labs
Keymaster@growup, We checked the code in the repository. Unfortunately we could not find any action hooks/filters to save metadata to a paid memberships pro order.
-
AuthorPosts
- You must be logged in to reply to this topic.