Questions about Payment Form extension

Passing parameters to/ from paypal

  • Mike Horner
  • Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 10 months ago #108643 by Mike Horner
Passing parameters to/ from paypal was created by Mike Horner
What is the best way of passing data to PayPal so that as part of the list payment processing further updates can be done once payment is confirmed.

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

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
6 years 10 months ago #108679 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Passing parameters to/ from paypal
Exactly what you are trying to do? Let me know so that I can understand and give you the answer to your question

Tuan

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

  • Mike Horner
  • Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 10 months ago #108681 by Mike Horner
Replied by Mike Horner on topic Passing parameters to/ from paypal
I am trying to use pmform as a payment gateway to my own application. The workflow I want to implement is something like this:

1: my component captures some data
2: I Call pmform to collect the payment passing some form if Id of my database record
3: payment completes and control passes back to my component to store the database record and capture the payment.info

Hope that helps clarify things

Mike

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

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
6 years 10 months ago #108682 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Passing parameters to/ from paypal
Hi Mike

1. Add a new field in #__pf_payments table to store ID of the record of your custom component

2. Once payment is processed, you have ID of the payment record in Payment Form. And base on that ID, you can get ID of your record

3. Do anything you want with your own data

I think you should do the step #2 and #3 inside a Payment Form plugin, process onAfterPaymentSuccess event trigger. See plugins/pmform/account/account.php for a sample plugin which process that event

Tuan

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

Moderators: Tuan Pham Ngoc