This package is abandoned and no longer maintained. No replacement package was suggested.

Composer plugin for using sku workflow in Brave

0.5 2020-04-10 20:49 UTC

This package is not auto-updated.

Last update: 2024-04-06 15:51:45 UTC


README

The PHP library consists of:

  • generateSKUToken() - You need to generate a SKU token for any item that is being displayed to the user. This function needs to be invoked on every page load for an item. See code here

    Parameters:

    • sku: String
    • amount: String
    • currency: String, should only be “BAT” for now.
    • description: String
    • expiry: String in RFC3339 format
  • validateOrderStatus - Once the order id is returned by the rewards service, this wrapper can be used to check if the transaction was completed. See code here

    Parameters:

    • host: String,
    • orderId: String