Skip to content

Commit

Permalink
docs(open payment platform): update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
baiyutang committed Dec 1, 2022
1 parent aba8595 commit ad724f0
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 26 deletions.
20 changes: 12 additions & 8 deletions open-payment-platform/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,9 @@ curl --location --request POST 'http://127.0.0.1/gateway/payment' \
--data-urlencode 'sign_type=SM3' \
--data-urlencode 'biz_params={"out_order_no":"111222333","merchant_id":"OPP9993338844"}' \
--data-urlencode 'nonce_str=439FJDF98HUFHSUGNFDIUSHF'

# {"err_code":0,"err_message":"ok","nonce_str":"439FJDF98HUFHSUGNFDIUSHF","order_status":0,"sign":"19944bf5576669fcfc08","sign_type":"SM3"}
```
```shell
{"err_code":0,"err_message":"ok","nonce_str":"439FJDF98HUFHSUGNFDIUSHF","order_status":0,"sign":"19944bf5576669fcfc08","sign_type":"SM3"}
```

- Close Order
Expand All @@ -92,9 +93,12 @@ curl --location --request POST 'http://127.0.0.1/gateway/payment' \
--data-urlencode 'sign_type=SM3' \
--data-urlencode 'biz_params={"out_order_no":"111222333","merchant_id":"OPP9993338844"}' \
--data-urlencode 'nonce_str=439FJDF98HUFHSUGNFDIUSHF'

# {"err_code":0,"err_message":"ok","nonce_str":"439FJDF98HUFHSUGNFDIUSHF","sign":"2fa66cf2c59cdcd02f4b","sign_type":"SM3"}

```
```shell
{"err_code":0,"err_message":"ok","nonce_str":"439FJDF98HUFHSUGNFDIUSHF","sign":"2fa66cf2c59cdcd02f4b","sign_type":"SM3"}
```
check order status
```shell
curl --location --request POST 'http://127.0.0.1/gateway/payment' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'method=queryorder' \
Expand All @@ -103,7 +107,7 @@ curl --location --request POST 'http://127.0.0.1/gateway/payment' \
--data-urlencode 'sign_type=SM3' \
--data-urlencode 'biz_params={"out_order_no":"111222333","merchant_id":"OPP9993338844"}' \
--data-urlencode 'nonce_str=439FJDF98HUFHSUGNFDIUSHF'

# {"err_code":0,"err_message":"ok","nonce_str":"439FJDF98HUFHSUGNFDIUSHF","order_status":9,"sign":"36f9ac0a04d7c9d8e093","sign_type":"SM3"}

```
```shell
{"err_code":0,"err_message":"ok","nonce_str":"439FJDF98HUFHSUGNFDIUSHF","order_status":9,"sign":"36f9ac0a04d7c9d8e093","sign_type":"SM3"}
```
Binary file modified open-payment-platform/docs/open-payment-platform.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 0 additions & 16 deletions open-payment-platform/idl/base.thrift

This file was deleted.

2 changes: 0 additions & 2 deletions open-payment-platform/idl/payment.thrift
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@
// limitations under the License.
//

include "base.thrift"

namespace go payment

struct UnifyPayReq {
Expand Down
File renamed without changes.

0 comments on commit ad724f0

Please sign in to comment.