Forums

db read dop paypal listener a bit 'confused

Zampieri 02 Feb, 2015
They are a bit 'confused about how to proceed. I have not bought the full listener and do not know if this affects the thing or not.
Currently unless the user data before the Paypal redirect (trial) but do not know how to retrieve and pass the id of the record you just saved. I tried to enter a value in the paypal redirects custom but accepts only one field but if I enter eg "id" (which is the name of the field in the database), nothing appears in the extra parameter step custom = "1" statically this is passed to paypal but then the listener this field I can not read it. I read that there should be an action db record loader but can not find it in the list of actions.
I read the topic:
http://www.chronoengine.com/faqs/57-cfv4/cfv4-actions/2583-how-to-use-the-paypal-redirect-action.html
but refers to the V4 and the famous db record loader that appears in the V5.
GreyHead 02 Feb, 2015
1 Likes
Hi Zampieri,

I have't used the built-in PayPal actions. As far as I know the demo versions are fully functional except that they randomise the amount. Otherwise they should work correctly.

What I do with PayPal is to save the record before sending the User to PayPal and add a record identifier* to the PayPal URL to identify the transaction.

Then in the listener event you can get the record back from the database table with a DB Read action and check and update it.

Bob

* I usually use a random string identifier but the record id will work OK.
Zampieri 02 Feb, 2015
Hi Bob, ok that trial is fully functionally except random value (understandably).
my doubt is on how to retrieve the id after saving it in the database and before passing extra parameters via paypal to redirect.
Currently the db save is set as follows
Enabled YES
Save under Model ID YES
Multi save NO
Model ID Date

The "paypal redirect" is the sandbox mode
custom field id element (which is the name of the field with the value that the "db save" should give me back)
Extra params custom = id (do not know how to set it and it is definitely wrong)
If the custom field put the name of a field whose value is included in the form, for example, "email", this is returned by paypal but I do not know how to take the value stored in the database, that is, the "id" field that is unique and then retrieve it with the db read ipn event.
I hope I explained myself.
Forgive the bad English.
Zampieri 02 Feb, 2015
I found the error in the DB Save enough disable Save under Model ID and the extra params write custom = id. NOW WORKS!
Thanks anyway.
This topic is locked and no more replies can be posted.