v3labs / payubiz-php

MIT License
3 stars 6 forks source link

Error in testing mode. #1

Closed znck closed 9 years ago

znck commented 9 years ago

Sorry some error occurred. I guess you are not using the salt.

v3labs commented 9 years ago

Can you be more specific? Pasting the code you are using might be a good start.

znck commented 9 years ago

Checksum is correct. I don't know whats happening. Here is the snippet.

 $payubiz = new PayUbiz([
            'merchantId' => Config::get('services.payubiz.key'),
            'secretKey'  => Config::get('services.payubiz.secret'),
            'testMode'   => !(App::environment() === 'production'),
        ]);

        // All of these parameters are required!
        $params = [
            'txnid'       => $appointment->id,
            'amount'      => $appointment->amount,
            'productinfo' => 'Blah Blaj',
            'firstname'   => $appointment->name,
            'email'       => $appointment->email,
            'phone'       => $appointment->phone,
            'surl'        => route('appointment.pay', $appointment->id),
            'furl'        => route('appointment.pay', $appointment->id),
        ];
v3labs commented 9 years ago

I will look into it later today. Thanks for the feedback!

znck commented 9 years ago

Hey! I found the error. The form has one input field missing.

<input type="hidden" name="service_provider" value="payu_paisa"/>

It worked after adding in the form text.

v3labs commented 9 years ago

Thanks. I'll add this to the form.