diff --git a/open-payment-platform/README.md b/open-payment-platform/README.md index 9680c3ae..d7bee1f0 100644 --- a/open-payment-platform/README.md +++ b/open-payment-platform/README.md @@ -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 @@ -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' \ @@ -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"} ``` \ No newline at end of file diff --git a/open-payment-platform/docs/open-payment-platform.png b/open-payment-platform/docs/open-payment-platform.png index 42fbee5c..570f7edc 100644 Binary files a/open-payment-platform/docs/open-payment-platform.png and b/open-payment-platform/docs/open-payment-platform.png differ diff --git a/open-payment-platform/idl/base.thrift b/open-payment-platform/idl/base.thrift deleted file mode 100644 index 5faf082c..00000000 --- a/open-payment-platform/idl/base.thrift +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright 2022 CloudWeGo Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// - -namespace go base diff --git a/open-payment-platform/idl/payment.thrift b/open-payment-platform/idl/payment.thrift index 68ea7f61..953589fd 100644 --- a/open-payment-platform/idl/payment.thrift +++ b/open-payment-platform/idl/payment.thrift @@ -13,8 +13,6 @@ // limitations under the License. // -include "base.thrift" - namespace go payment struct UnifyPayReq { diff --git a/open-payment-platform/internal/payment/usecase/README.md b/open-payment-platform/internal/README.md similarity index 100% rename from open-payment-platform/internal/payment/usecase/README.md rename to open-payment-platform/internal/README.md