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

Commit a589250

Browse files
author
fd6130
committed
update README
1 parent 60e6e2d commit a589250

File tree

1 file changed

+23
-6
lines changed

1 file changed

+23
-6
lines changed

README.md

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,27 @@ BILLPLZ_SANDBOX_SIGNATURE_KEY=
3131
```yaml
3232
# /config/packages/fd_billplz.yaml
3333
fd_billplz:
34-
fd_billplz:
35-
api_key: "%env(BILLPLZ_API_KEY)%"
36-
signature_key: "%env(BILLPLZ_SIGNATURE_KEY)%"
37-
sandbox: "%env(bool:BILLPLZ_SANDBOX)%" # true or false
38-
sandbox_api_key: "%env(BILLPLZ_SANDBOX_API_KEY)%"
39-
sandbox_signature_key: "%env(BILLPLZ_SANDBOX_SIGNATURE_KEY)%"
34+
enable_sandbox: "%env(bool:BILLPLZ_SANDBOX)%" # true or false
35+
sandbox:
36+
api_key: "%env(BILLPLZ_SANDBOX_API_KEY)%"
37+
signature_key: "%env(BILLPLZ_SANDBOX_SIGNATURE_KEY)%"
38+
collection: # add your bill collection here
39+
- { name: "", id: ""} # "name" is the key name of the collection, "id" is the collection id
40+
live:
41+
api_key: "%env(BILLPLZ_API_KEY)%"
42+
signature_key: "%env(BILLPLZ_SIGNATURE_KEY)%"
43+
collection:
44+
- { name: "", id: ""}
45+
```
46+
47+
Usage
48+
-----
49+
50+
```php
51+
function createPayment(BillplzInterface $billplz)
52+
{
53+
$response = $billplz->createBill("collection_name", "[email protected]", null, "Lorem Ipsum", 100, "https://127.0.0.1/payment/success", "A new product", []);
54+
55+
// your own logic here...
56+
}
4057
```

0 commit comments

Comments
 (0)