Giter Site home page Giter Site logo

omnikassa-sdk-doc's People

Contributors

twanarabo avatar wvdiepen avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

omnikassa-sdk-doc's Issues

merchantOrderId field length limited to 24 characters

Looking at the schema for the order announce call, the description of the merchantOrderId mentioned some strange behavior for this property. It looks like the specification changes dynamically depending on another property called shopperBankstatementReference.
Searching on github, I found this 'java only' code:

         * @param merchantOrderId | Must not be `null`
         *                        | - if shopperBankstatementReference is supplied:
         *                        |   Allows all ascii characters up to a length of 255 characters, if the ID contains more than 255 characters, the extra characters are removed after the 255th character.
         *                        | - else:
         *                        |   Must adhere to the pattern: '[A-Za-z0-9]{1,24}', if the ID contains more than 24 characters, the extra characters are removed after the 24th character.
         * @return Builder
         */
        public Builder withMerchantOrderId(String merchantOrderId) {
            this.merchantOrderId = merchantOrderId;
            return this;
        }

Schema description of shopperBankstatementReference:
Generated by the webshop. The value of this field must be unique when offering Riverty/AfterPay as a payment brand to the customer. If the ID contains more than 24 characters, the extra characters are removed after the 24th character.

When shopperBankstatementReference has a value, the merchantOrderId property suddenly is allowed to contain 255 characters? That is strange behavior.

It's very common to use GUID's as a way to create unique ID's. A string representation of a GUID needs at least 32 characters (leaving out braces and hyphens). So, GUID's can't be used as a merchantOrderId.

The 'shopperBankstatementReference' change has been made recently. Apparently Java only, and not for .NET, PHP and sdk documentation. Is it a trial feature?

Question: is it possible to change the API to always have 255 characters for the merchantOrderId? Or at least 32?

Explain Billing Address setup for company invoices

The readme is targeting B2C, but from the text itself it remains unclear how the billing address should be structured for an order for a company.

The billing address is recommended for some payment brands, but allows not both specification of company name and first / last name.

Also, often street name, house number and addition are not available in split format. Some recommendations whether a merged variant is allowed would be welcome.

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.