Page 2 of 2 FirstFirst 12
Results 11 to 20 of 20

Thread: Developing PWA Apps in Lianja 6

  1. #11
    Member
    Join Date
    Mar 2014
    Posts
    93
    Hi Barry

    I looking through the guide here:
    https://developers.google.com/web/fu...ayment-request
    https://developers.google.com/web/fu...cosystem-works

    Is this function ready to build yet as aware it bleeding edge?
    I have my own MIDs and APIs Gateways but searching for where I would supply my MID (Merchant ID).

    Do you have access to a DEMO yet?
    Thanks PAul.
    Last edited by pauln; 2021-03-08 at 06:08.

  2. #12
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    6,236
    Itís described in the first link.

    search for creditCardPaymentMethod

    It explains.
    Principal developer of Lianja, Recital and other products

    Follow me on:

    Twitter: http://twitter.com/lianjaInc
    Facebook: http://www.facebook.com/LianjaInc
    LinkedIn: http://www.linkedin.com/in/barrymavin

  3. #13
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    6,236
    I will provide an example in due course.
    Principal developer of Lianja, Recital and other products

    Follow me on:

    Twitter: http://twitter.com/lianjaInc
    Facebook: http://www.facebook.com/LianjaInc
    LinkedIn: http://www.linkedin.com/in/barrymavin

  4. #14
    Member
    Join Date
    Mar 2014
    Posts
    93
    Example would be great.

    I ran this in console just to see if I could pop a window -
    Lianja.makePayment("onsuccess", "onerror", 'basic-card', "visa', 'mastercard', 'amex'", "'credit', 'debit'", "orderID", "shoppingCart")

    Of course I got a "METHOD 'MAKEPAYMENT' not found" - I probably called it wrong.
    I see there will be a need add to an Array of SupportedPaymentMethods to supply a new custom Gateway.

    Look forward to the DOCs emerging to explain the other elements.
    Thanks
    Last edited by pauln; 2021-03-08 at 06:46.

  5. #15
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    6,236
    What console? This is browser functionality. Try that in the browser console.
    Principal developer of Lianja, Recital and other products

    Follow me on:

    Twitter: http://twitter.com/lianjaInc
    Facebook: http://www.facebook.com/LianjaInc
    LinkedIn: http://www.linkedin.com/in/barrymavin

  6. #16
    Member
    Join Date
    Mar 2014
    Posts
    93
    Yea I wait for the example ...
    Name:  Mp.JPG
Views: 29
Size:  19.5 KB
    No rush here too much to learn first thanks.

  7. #17
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    6,236
    That’s what I expect as the arguments you specified are incorrect.

    It will get documented.

    Just type this if you want to see how it operates in the browser.

    Lianja.makePayment()
    Principal developer of Lianja, Recital and other products

    Follow me on:

    Twitter: http://twitter.com/lianjaInc
    Facebook: http://www.facebook.com/LianjaInc
    LinkedIn: http://www.linkedin.com/in/barrymavin

  8. #18
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    6,236
    I have updated the original post to include an example.

    https://www.lianja.com/community/sho...2826#post22826
    Principal developer of Lianja, Recital and other products

    Follow me on:

    Twitter: http://twitter.com/lianjaInc
    Facebook: http://www.facebook.com/LianjaInc
    LinkedIn: http://www.linkedin.com/in/barrymavin

  9. #19
    Member
    Join Date
    Mar 2014
    Posts
    93
    Excellent Barry I stuffed the code into a Click event of a button on a form(?)
    Name:  ClickEvent.JPG
Views: 29
Size:  42.0 KB

    It returned a fat JSON styled object:
    Name:  JsonPay.JPG
Views: 28
Size:  17.1 KB

    It has the details I require for processing i.e. Card & Billing details from my Chrome Wallet.
    I assume we now code up to an PSP to get a result and return a success or failure from the PSP.

    Is that how you see it for a simple implementation (no Apply Pay etc)?

  10. #20
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    6,236
    The onsuccess() is called if the payment is made successfully otherwise onerror() is called.

    This is the payment API. It makes payments.

    It uses google pay to apple pay.
    Principal developer of Lianja, Recital and other products

    Follow me on:

    Twitter: http://twitter.com/lianjaInc
    Facebook: http://www.facebook.com/LianjaInc
    LinkedIn: http://www.linkedin.com/in/barrymavin

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Journey into the Cloud
Join us