viaBowl Posted December 11, 2016 Share Posted December 11, 2016 Hey, Does anyone know a quick and dirty (or even proper) way to grab the array from the RAWDATA that's stored in the transaction log for use in a refund transaction? 0 Quote Link to comment Share on other sites More sharing options...
pablobaldovi Posted December 11, 2016 Share Posted December 11, 2016 This data is saved into tblgatewaylog. you are writing a custom gateway module? which data need? 0 Quote Link to comment Share on other sites More sharing options...
viaBowl Posted December 12, 2016 Author Share Posted December 12, 2016 im writing a Coinbase module (v2). I need the rawdata that's saved into the transaction log during the callback. 0 Quote Link to comment Share on other sites More sharing options...
pablobaldovi Posted December 12, 2016 Share Posted December 12, 2016 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. 0 Quote Link to comment Share on other sites More sharing options...
viaBowl Posted December 12, 2016 Author Share Posted December 12, 2016 That's precisely what I want. My rawdata is an array of the gateway response... I just want to call it to get some of the data to send back for the refund transaction. 0 Quote Link to comment Share on other sites More sharing options...
pablobaldovi Posted December 12, 2016 Share Posted December 12, 2016 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. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.