Comments (11)
Hmmm. Do you need it pass to paymet's items? Gopay does not accept negative values?
from gopay-inline.
Yes, customers should see what they pay for. Yes, Gopay does not accept negative amounts - see documentation -> Objects -> Items -> amount (long > 0).
There is also second problem, if you don't pass rounding as payment item, total sum doesn't match:
from gopay-inline.
I get your point. If some webservice does not support it, you use it bad.
from gopay-inline.
So... how can I solve it? :-) Cents rounding is pretty common thing.
from gopay-inline.
Gopay technical support suggested me add this rounding to final price. So maybe some config switch "Turn off validation" will be great?
from gopay-inline.
I'm not sure if it is allowed on Gopay side. You can pass different items price and payment price?
from gopay-inline.
Yes to Gopay you can send different items price, but in this library is some Validator, see last screenshot above.
from gopay-inline.
Ok. I have added 2nd parameter validators.
PaymentFactory - https://github.com/Markette/GopayInline/blob/9a8be30ba3d160d91f0628a8d62e14d8b58fbb89/src/Api/Entity/PaymentFactory.php#L148-L152
It is backward compatible. Just use create($data, $validators = [])
from gopay-inline.
Please test it on master and I will tag it.
markette/gopay-inline: 1.1.0
should target to master, minimum-stability: dev
"markette/gopay-inline": "~1.1.0@dev"
from gopay-inline.
Thank you, works great!
from gopay-inline.
Great.
from gopay-inline.
Related Issues (20)
- EET je NULL
- vatRate a type je NULL u items při použití PaymentFactory
- Missing getAccountStatement() HOT 12
- Refundace platby pro EET
- EET účtenky platby HOT 3
- Missing BITCOIN PaymentInstrument HOT 5
- Wrong type used for price amounts HOT 8
- PHP 7.2 - 8.0 HOT 2
- Nette 3 support HOT 5
- Contributte
- Contributte style HOT 1
- Argument $data in PaymentFactory::create() should be regular entity HOT 6
- RecurrentPayment configuration not compatible with Payment (callback parameter) HOT 6
- Contributte standardise HOT 2
- Payment price validation of an multi-item HOT 2
- How to create signature? HOT 2
- Auto update authorization token after expiration.
- Wrong installation instructions in README HOT 1
- Allow version 4 of moneyphp/money dependency HOT 6
- Added endpoint for cancel recurrence payment
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gopay-inline.