Sha256: d76c17561b1fc07394f7e8b40d75ff11ca0bc44eeebc8c2bcf3590f3af97ae41

Contents?: true

Size: 430 Bytes

Versions: 2

Compression:

Stored size: 430 Bytes

Contents

require '../lib/voucherify'

voucherify = Voucherify.new({
                                "applicationId" => "c70a6f00-cf91-4756-9df5-47628850002b",
                                "clientSecretKey" => "3266b9f8-e246-4f79-bdf0-833929b1380c"
                            })

validation_result = voucherify.validate("91Ft4U", {
    tracking_id: "john@lemon.com",
    order: {
        amount: 1000
    }
})

print(validation_result);

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
voucherify-0.8.2 examples/validate.rb
voucherify-0.8.0 examples/validate.rb