Welcome Guest, Not a member yet? Register   Sign In
Pass values to external class
#1

(This post was last modified: 09-19-2019, 12:44 AM by ciadmin. Edit Reason: protect password )

Good day,
               I want to add a payment gateway to my project. For that, the payment gateway guys provided their code, now I want to pass some values from my controller to that file (Attached). The problem is the whole file is a class. I cant create my own function in it.
Code:
class NetworkonlieBitmapPaymentIntegration
{
$networkOnlineArray = array('Network_Online_setting' => array(
'MKEY'    => "REDACTED",
'MID'     => 'REDACTED',                                                              
'amount' => '1000',
'name' => 'ADCB',
'currency' => 'PHP',            
));
}
$networkOnlineObject = new NetworkonlieBitmapPaymentIntegration($networkOnlineArray);
I tried it as the library, helper even separate controller but no luck
Reply


Messages In This Thread
Pass values to external class - by AKKU - 09-18-2019, 10:00 PM
RE: Pass values to external class - by kilishan - 09-20-2019, 11:47 AM



Theme © iAndrew 2016 - Forum software by © MyBB