panne003
panne003
Offline
0
Hello,

I love the Invoice manager and it looks great. Is there a way to make the payment with the plugin of virtuemart?
I have so far used the offline payment plugin and i put in the textfield the following lines. At my payment provider in the netherlands I can use paymentlinks like this:

https://www.pay.nl/payment/SL-3053-3520/0Lcaff4/?amount=500&amount_min=500&extra1[Ordernummer]=2899&extra2[Klantnaam]=janet pannekoek}&extra3[Email]=jpannekoek@ziggo.nl

https://www.pay.nl/payment/SL-3053-3520/0Lcaff4/?amount={total}&amount_min={total}&extra1[Ordernummer]={invoice_num}&extra2[Klantnaam]={to_name}&extra3[Email]={to_email}

In the invoicetemplate on the bottom of the template the following lines:

[code type="xml"]

Klik hier uw bestelling online te betalen.
U kunt uw bestelling voldoen met IDeal, Paypal, Achteraf Betalen of diverse GiftCards.


/code]

Only the {total} have to be only numbers € 500 have to be 500. The output of the template is € 500. With this the fiield amount stays empty, while the other fields {invoice_num}, {to_name} and {to_email} are oke (see attachement)

When the customers pay with the link in the offline payment tab then the fields {invoice_num}, {to_name} {to_email} are not convert to the actual names.

I hope you understand what I want. I want that my dutch customers are pay with the paylink of virtuemart payment method (in invoices or online with the beautiful paybutton you made in invoicemanager. How can i make that happen?

Thanks in advance
Janet Pannekoek :)
Responses (3)
  • Accepted Answer

    Tuesday, October 20 2015, 06:06 PM - #Permalink
    0
    what you require is not available without some coding...
    first of, the number (without € symbol) cannot be taken from a tag, so a new one needs to be created.

    also, you can put this code in the template code instead of the button link, but won't work inside the payment plugin because the tags are not rendered there...! that would require custom coding as well..

    on a final note, this method will allow your user to pay but the system won't receive any confirmation... therefore the payment will not be updated automatically to show status "paid".. do you know what I mean? you would actually require a plugin for this...
    The reply is currently minimized Show
  • Accepted Answer

    panne003
    panne003
    Offline
    Tuesday, October 20 2015, 07:58 PM - #Permalink
    0
    Hello,
    In virtuemart I use a virtuemart plugin called pay (payment provider). Is there an option to make a plugin like the tabs paypal and payment offline? The payment provider send a email with confimation payment. Then I have to manually give the order to be paid.
    There is an api available from the payment provider. Can you make a plugin like the paypal of oflfline payment? The payment providers website is http://www.pay.nl/webshops/plugins#anchor-api


    Start Payment
    PHP code:
        # Setup API URL
    $strUrl = 'https://rest-api.pay.nl/v5/transaction/start/json?';

    # Add arguments
    $arrArguments['token'] = '4830f1a5be689901d095ab8af595a9839ce7adb3';
    $arrArguments['serviceId'] = 'SL-7378-6230';
    $arrArguments['amount'] = 123;
    $arrArguments['finishUrl'] = 'https://www.pay.nl/demo_ppt/finish_url';
    $arrArguments['transaction']['description'] = 'Uw order 123';

    # Prepare and call API URL
    $strUrl .= http_build_query($arrArguments);
    $jsonResult = @file_get_contents($strUrl);


    Api result Start Payment
        {
    "transaction": {
    "transactionId": "580893124Xc57e7a",
    "paymentURL": "https://safe.pay.nl/payment/init/580893124Xc57e7a/e6a260c3d54c182005d9d08ff82cd616aa63f7d4/1663/NL",
    "popupAllowed": "0",
    "paymentReference": "9000 0005 8089 3124"
    }
    }


    Status Payment

    API status Payment
            # Setup API URL
    $strUrl = 'https://token:4830f1a5be689901d095ab8af595a9839ce7adb3@rest-api.pay.nl/v5/transaction/info/json?';

    # Add arguments
    $arrArguments['transactionId'] = '580896883X60c444';

    # Prepare and call API URL
    $strUrl .= http_build_query($arrArguments);
    $jsonResult = @file_get_contents($strUrl);


    Result status payment

         {
    "paymentDetails": {
    "amount": "123",
    "paidAmount": "0",
    "paidBase": "0",
    "paidCosts": "0",
    "paidCostsVat": "0",
    "paidCurrency": "EUR",
    "paidAttemps": "1",
    "paidDuration": "0",
    "description": "Uw",
    "processTime": "0",
    "state": "20",
    "stateName": "PENDING",
    "stateDescription": "Initialized",
    "exchange": "",
    "storno": "0",
    "paymentOptionId": "1663",
    "paymentOptionSubId": "0",
    "secure": "0",
    "secureStatus": "",
    "identifierName": "",
    "identifierPublic": "",
    "identifierHash": "",
    "serviceId": "SL-7378-6230",
    "serviceName": "Demoschermen",
    "serviceDescription": "Voorbeeld voor demonstratie bestanden. Deze mag niet verwijderd worden. ",
    "created": "2015-10-20 19:35:20",
    "modified": "2015-10-20 19:35:20",
    "paymentMethodId": "4",
    "paymentMethodName": "Transacties ",
    "paymentMethodDescription": "Pay Per Transaction",
    "paymentProfileName": "Betaalkeuze maken"
    }
    }
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, October 22 2015, 06:15 PM - #Permalink
    0
    Yes, a new plugin could be created for you for that payment method, it would have to be through our Custom Coding Service.

    If you're intersted in a quote, please feel free to email us directly at support@ joomlathat.com
    The reply is currently minimized Show
Your Reply