Git Product home page Git Product logo

Comments (15)

dercoder avatar dercoder commented on June 22, 2024

Please add this feature an do a PR

from omnipay-webmoney.

shamarin avatar shamarin commented on June 22, 2024

Sorry, but coudn't add this to PR or didn't understand how to do it (interface of Github showing that there is nothing to compare if i press to new PR).

from omnipay-webmoney.

dercoder avatar dercoder commented on June 22, 2024

Show me your code pls

from omnipay-webmoney.

shamarin avatar shamarin commented on June 22, 2024

I didn't have any code. I can translate to you the WebMoney wiki article for new function.

from omnipay-webmoney.

dercoder avatar dercoder commented on June 22, 2024

Currently i have no time to add this feature. So if you want it, you have to add it by your own

from omnipay-webmoney.

shamarin avatar shamarin commented on June 22, 2024

Now i did it by this code in PurchaseRequest.php:
return array(
'LMI_PAYEE_PURSE' => $this->getMerchantPurse(),
'LMI_PAYMENT_AMOUNT' => $this->getAmount(),
'LMI_PAYMENT_NO' => $this->getTransactionId(),
'LMI_PAYMENT_DESC_BASE64' => base64_encode($this->getDescription()),
'LMI_SIM_MODE' => $this->getTestMode() ? '2' : '0',
'LMI_RESULT_URL' => $this->getNotifyUrl(),
'LMI_SUCCESS_URL' => $this->getReturnUrl(),
'LMI_SUCCESS_METHOD' => $this->getReturnMethod(),
'LMI_FAIL_URL' => $this->getCancelUrl(),
'LMI_FAIL_METHOD' => $this->getCancelMethod(),
'LMI_HOLD' => '0',
LMI_HOLD is hold function due to WebMoney Merchant documentary, but i didn't know how to make a function of setting number of days in LMI_HOLD. I set it to deault value 'LMI_HOLD' => '0', so it would be 1 day as in example of WebMoney Merchant. Please check it.

from omnipay-webmoney.

dercoder avatar dercoder commented on June 22, 2024

So possible values for LMI_HOLD are 0 or 1. Default 0. Right?

from omnipay-webmoney.

shamarin avatar shamarin commented on June 22, 2024

Yes, default is 0 (24 hours). And LMI_HOLD value is number of days for holding money without commision on moneyback. So LMI_HOLD could be any number of days - deault is 0 (24 hour) and 1, 2 ,3 and so on.

from omnipay-webmoney.

dercoder avatar dercoder commented on June 22, 2024

I understand

from omnipay-webmoney.

shamarin avatar shamarin commented on June 22, 2024

LMI_HOLD meens that in value of this days (deafult 24 hours) money is holded. And if the merchant didn't accept transaction in those period of time (days) those money will be backed to purchaser without any commision from WebMoney.

from omnipay-webmoney.

shamarin avatar shamarin commented on June 22, 2024

I setup it as 24 hours in message/PurchaseRequest.php file by this code:
return array(
'LMI_PAYEE_PURSE' => $this->getMerchantPurse(),
'LMI_PAYMENT_AMOUNT' => $this->getAmount(),
'LMI_PAYMENT_NO' => $this->getTransactionId(),
'LMI_PAYMENT_DESC_BASE64' => base64_encode($this->getDescription()),
'LMI_SIM_MODE' => $this->getTestMode() ? '2' : '0',
'LMI_RESULT_URL' => $this->getNotifyUrl(),
'LMI_SUCCESS_URL' => $this->getReturnUrl(),
'LMI_SUCCESS_METHOD' => $this->getReturnMethod(),
'LMI_FAIL_URL' => $this->getCancelUrl(),
'LMI_FAIL_METHOD' => $this->getCancelMethod(),
'LMI_HOLD' => '0',

from omnipay-webmoney.

dercoder avatar dercoder commented on June 22, 2024

Please try my latest commit.
getHold() and setHold() functions have been added now

from omnipay-webmoney.

shamarin avatar shamarin commented on June 22, 2024

Ok. Will check. Thanks.

from omnipay-webmoney.

dercoder avatar dercoder commented on June 22, 2024

Does it work?

from omnipay-webmoney.

SilverFire avatar SilverFire commented on June 22, 2024

I think we can close this one

from omnipay-webmoney.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.