Recurring settings and Transaction ID

  • Georges Coral
  • Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 10 months ago #99989 by Georges Coral
Recurring settings and Transaction ID was created by Georges Coral
Hello,
When a user sign for a one time subscription plan (without trial period), the email confirmation includes the Transaction ID.

But when a plan has a trial period and a user subscribe to this plan, email confirmation doesn't mention Transaction ID. Why?
But after a look into the database, a Transaction ID has been written into the table for the trial subscription.

Thank you for your explanation.

Georges

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

More
6 years 10 months ago #100012 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Recurring settings and Transaction ID
Hello Georges

Is it a free trial subscription plan? If so, no payment is processed, so no Transaction ID is expected behavior

Could you please check and confirm?

Tuan

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

  • Georges Coral
  • Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 10 months ago - 6 years 10 months ago #100029 by Georges Coral
Replied by Georges Coral on topic Recurring settings and Transaction ID
Tuan,

Thank you for your answer.

A transaction number is always entered into the database if it is a free product or a free period trial for a recurring payment.

Check the field "transaction_id" into the table "_osmembership_subscribers". You will see always a transaction code generated by the payment system (Paypal, ...) or the system itself.

When it's a free membership (without free trial period) or a paid membership, the Transaction ID is sended by email or recoverable with the tag [TRANSACTION_ID].

But if it's a membership with free or paid trial period (recurring payment), the Transaction ID is not sended by email or recoverable with the tag. But a transaction ID is written into the table.

Georges
Last edit: 6 years 10 months ago by Georges Coral.

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

More
6 years 10 months ago #100040 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Recurring settings and Transaction ID
Hello Georges

That's not a real transaction id. It is generated before the system redirect to payment gateway for processing payment. That kind of Transaction ID is used for offline payment only

For Payment Method such as PayPal, that pre-generated Transaction ID will be replaced by real transaction id returned by payment gateway for transaction

Anyway, the point is we only send transaction id if there is actual payment for the subscription record. When there is no payment, no transaction id will be sent and it is logic. Not sure why you need transaction id in this case? It is just a fake one

Tuan

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

  • Georges Coral
  • Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 10 months ago #100043 by Georges Coral
Replied by Georges Coral on topic Recurring settings and Transaction ID
Dear Tuan,

The Transaction ID could be used as unique subscription identifier. I don't need this Transaction ID related to a payment but as identifier for the opening of a subscription.

I have develop an external application that read this ID to be sure that a subscrition has beed opened. The client has to put this ID before to run the application. But if he has not received by email the Transaction ID when he opened the subscription, he can not start the application.

For this reason, when it is a free trial period, I don't understand why Membership Pro don't send this very useful (but fake) Transaction ID (or the tag).

Georges

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

More
6 years 10 months ago #100074 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Recurring settings and Transaction ID
Hello Georges

That's because no one needs Transaction ID for a none payment subscription. You are using it for a different purpose, that's why you need it. It is just a special case only

I just made a small modification to the code. You can get this file, unzip it, then upload it to components/com_osmembership/\view\emailtemplates\tmpl folder to see whether it is working as expected?

Regards,

Tuan
Attachments:

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

  • Georges Coral
  • Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 10 months ago #100131 by Georges Coral
Replied by Georges Coral on topic Recurring settings and Transaction ID
Dear Tuan,

Thanks a lot for your work! So it was exactly what I expected with your modififcations.

Regards,

Georges

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

More
6 years 10 months ago #100153 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Recurring settings and Transaction ID
Please move that file to PATH_TO_YOUR_TEMPLATE/html/com_osmembership/emailtemplates folder so that the change won't be lost when you update to future releases of Joomla

It is called template override in Joomla, see docs.joomla.org/How_to_override_the_outp...m_the_Joomla%21_core if you want to know more

Tuan

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