diff --git a/examples/charge.php b/examples/charge.php new file mode 100644 index 0000000..f74fcc6 --- /dev/null +++ b/examples/charge.php @@ -0,0 +1,13 @@ +charge(100, [ + 'currency' => 'USD', + 'products' => [ + [ + 'id' => 10, + 'quantity' => 2 + ] + ] +]); \ No newline at end of file diff --git a/examples/simple-event.php b/examples/simple-event.php new file mode 100644 index 0000000..f4bab03 --- /dev/null +++ b/examples/simple-event.php @@ -0,0 +1,5 @@ +track('Register'); \ No newline at end of file diff --git a/examples/track-custom-people-id.php b/examples/track-custom-people-id.php new file mode 100644 index 0000000..dda9dba --- /dev/null +++ b/examples/track-custom-people-id.php @@ -0,0 +1,11 @@ +people->setIdentifier($people_id); + +$mintance->track('Add to Cart', [ + 'product_id' => 1 +]); \ No newline at end of file