This repository was archived by the owner on Feb 13, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +23
-6
lines changed Expand file tree Collapse file tree 1 file changed +23
-6
lines changed Original file line number Diff line number Diff line change @@ -31,10 +31,27 @@ BILLPLZ_SANDBOX_SIGNATURE_KEY=
3131``` yaml
3232# /config/packages/fd_billplz.yaml
3333fd_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```
You can’t perform that action at this time.
0 commit comments