Skip to content

RemitaNet/remita-inline-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Remita Inline Sample

Our Web library lets you easily accept payments inside any web application.

Usage

To start using Remita Inline Checkout, refer to the sample Remita Inline Sample HTML file

Please replace the 'public key' in the script with your assigned API key, which you can obtain by signing up as an integrator on remita.

Development setup

Integrating Remita Inline Checkout is a straightforward process. Include our JavaScript library at the bottom of the checkout form page, like so:

<form>
    <script src="https://remitademo.net/payment/v1/remita-pay-inline.bundle.js"></script>
    <button type="button" onclick="makePayment()"> Pay </button> 
</form>
<script>
    function makePayment() {
        var paymentEngine = RmPaymentEngine.init({
            key: 'public key',
            customerId: "140700251",
            firstName: "Lisa",
            lastName: "Spark",
            email: "[email protected]",
            amount: 19999,
            onSuccess: function (response) {
                console.log('callback Successful Response', response);
            },
            onError: function (response) {
                console.log('callback Error Response', response);
            },
            onClose: function () {
                console.log("closed");
            }
        });
    
        paymentEngine.showPaymentWidget();
    }
</script>

Documentation

For detailed information, refer to Remita Documentation

Release History

  • 0.1.1
    • CHANGE: Updated documentation
  • 0.1.0
    • Initial release
  • 0.0.1
    • Work in progress

Useful links

  • Join our Slack Developer/Support channel at slack

Support

###Contributing: To contribute to this repository, follow the steps below:

  • Fork the repository
  • Create a new branch: git checkout -b feature-name
  • Make changes and commit: git commit -m "added some new features"
  • Make pushes: git push origin feature-name
  • Submit a PR (Pull Request)

Releases

No releases published

Packages

No packages published

Languages