Skip to content
This repository was archived by the owner on Feb 13, 2025. It is now read-only.

Commit 3011523

Browse files
author
fd6130
committed
update README
1 parent a589250 commit 3011523

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ fd_billplz:
3636
api_key: "%env(BILLPLZ_SANDBOX_API_KEY)%"
3737
signature_key: "%env(BILLPLZ_SANDBOX_SIGNATURE_KEY)%"
3838
collection: # add your bill collection here
39-
- { name: "", id: ""} # "name" is the key name of the collection, "id" is the collection id
39+
- { name: "", id: ""} # will use when create new bill
4040
live:
4141
api_key: "%env(BILLPLZ_API_KEY)%"
4242
signature_key: "%env(BILLPLZ_SIGNATURE_KEY)%"
@@ -50,7 +50,12 @@ Usage
5050
```php
5151
function createPayment(BillplzInterface $billplz)
5252
{
53-
$response = $billplz->createBill("collection_name", "[email protected]", null, "Lorem Ipsum", 100, "https://127.0.0.1/payment/success", "A new product", []);
53+
/**
54+
* Assume you have set { name: "product", id: "ae12345"} in collection.
55+
*
56+
* It will get the id from the given name, you don't have to do anything.
57+
*/
58+
$response = $billplz->createBill("product", "[email protected]", null, "Lorem Ipsum", 100, "https://127.0.0.1/payment/success", "A new product", []);
5459

5560
// your own logic here...
5661
}

0 commit comments

Comments
 (0)