Jump to content

RAWDATA from transaction log for refund?


viaBowl

Recommended Posts

Hi.

Could you be a little more specific? What information do you want to get from the transaction log?

RAW data is information that you record, usually it is what the api returns.

You could use Capsule to get information from the mysql table tblgatewaylog

But when you record it, you have it to do with it whatever you want.

Link to comment
Share on other sites

Hi.

Okay. You have to use Capsule and look in the transaction log for some data that serves as id (can be the id of the transaction)

 

- First of all, at the beginning of the script (before any class or function)

 

Use Illuminate \ Database \ Capsule \ Manager as Capsule;

 

- Then look for that id

 

$ Data = Capsule :: table ('tblgatewaylog') -> where ('data', 'like', '%'. $ Id. '%') -> get ();

 

That returns all matches of that $ id

 

Now,

Remember that for your module you can create a specific table to save what you want and retrieve it easily. That's why I asked you what value you specifically needed. The id of the transaction is in 'tblaccounts' which also has the customer id and the invoice id.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated