567

Product support

Visit this product's website for support.

Categories

Add cms page

How to get API token and API secret

  • Create your account on TPV Virtual.
  • You can also create sandbox/testing account. Requires account approval Contact us
  • After confirming your email, navigate to Dashboard > My Profile section and go to bottom of that page (see 5th screenshot) and you can see your API token and API secret.

Plugin installation

  • Go to Backend > Settings and search for Updates & Plugins and click on it. you will see a button + Install plugin so click on it and type Javier.TPVvirtual and Install plugin.

Required configuration

  • You can also see screenshots of all the below steps.

  • After installation of this plugin, go in CMS section and create a new page and put it's title = TPV virtual and url = /tpv-virtual/:slug and save it and if your website used multi-language plugin(i.e. RainLab.Translate) then make sure to save url = /tpv-virtual/:slug in all languages.

  • A component TPVvirtualPayment is automatically registered by this plugin so add this component on above cms page and save it.

  • If you open that page in file editor then code on this page should have look like this.

    title = "TPV virtual"
    url = "/tpv-virtual/:slug"
    
    [TPVvirtualPayment]
  • Now navigate to JKshop > Payment Gateways and click on + New Payment Gateway button.

  • Now on Payment Page field, select the above created CMS page.

  • Now select TPVvirtual as your payment method in Omnipay Gateway field and it will generate some dynamic fields below it.

  • Now put TPVvirtual payment API information in these dynamic fields.

  • Also select the appropriate order status for awaiting,success and cancel order field.

For developers only

Events

  • There are 2 events fired by the plugin and you can listen them in your custom plugin in boot method of Plugin.php
  • 1) When payment successfully done

    \Event::listen('javier.tpvvirtual.payment_success', function($order,$transaction){
        //Write your code here
    });
    Here $order will have all the order information and $transaction will have all the transaction information
  • 2) When payment cancelled

    \Event::listen('javier.tpvvirtual.payment_cancel', function($order,$transaction){
        //Write your code here
    });
    Here $order will have all the order information and $transaction will have all the transaction information
1.0.3

Add tpv_link_expired and tpv_transaction field in jiri_jkshop_orders table

Jul 06, 2019

1.0.2

Add order cancel status field in jiri_jkshop_payment_gateways table

Jul 06, 2019

1.0.1

Initialize plugin.

Jul 06, 2019