Skip to content

Commit ccc7bf1

Browse files
committed
update text
1 parent 8207abe commit ccc7bf1

File tree

8 files changed

+16
-16
lines changed

8 files changed

+16
-16
lines changed

examples/core_api/core_api_credit_card_example.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import midtransclient
22
# This is just for very basic implementation reference, in production, you should validate the incoming requests and implement your backend more securely.
33

4-
# initialize core api client object
5-
# can find in Merchant Portal -> Settings -> Access keys
4+
# Initialize core api client object
5+
# You can find it in Merchant Portal -> Settings -> Access keys
66
core = midtransclient.CoreApi(
77
is_production=False,
88
server_key='YOUR_SERVER_KEY',

examples/core_api/core_api_simple_example.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import midtransclient
22
# This is just for very basic implementation reference, in production, you should validate the incoming requests and implement your backend more securely.
33

4-
# initialize core api client object
5-
# can find in Merchant Portal -> Settings -> Access keys
4+
# Initialize core api client object
5+
# You can find it in Merchant Portal -> Settings -> Access keys
66
core = midtransclient.CoreApi(
77
is_production=False,
88
server_key='YOUR_SERVER_KEY',

examples/flask_app/templates/simple_core_api_checkout.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ <h1>Checkout</h1>
6161
</code>
6262

6363
<hr>
64-
<small>Check `web.js` file, section `Using Core API - Credit Card` for the backend implementation</small>
64+
<small>Check `web.py` file, section `Using Core API - Credit Card` for the backend implementation</small>
6565

6666
<!-- Import MidtransNew3ds library -->
6767
<!-- TODO change data-environment to `production` for Production mode -->
@@ -91,7 +91,7 @@ <h1>Checkout</h1>
9191
onSuccess: function(response){
9292
// success to get card token
9393
// [2] Send AJAX to let backend charge the card using the card token_id
94-
// Check backend implementation on `web.js` file, section `[2]`
94+
// Check backend implementation on `web.py` file, section `[2]`
9595
fetch("/charge_core_api_ajax", {
9696
method : "POST",
9797
body: JSON.stringify({
@@ -147,7 +147,7 @@ <h1>Checkout</h1>
147147

148148
if (responseObj.transaction_id){
149149
// [4] Inform the result to backend update DB status and verify to Midtrans
150-
// Check backend implementation on `web.js` file, section `[4]`
150+
// Check backend implementation on `web.py` file, section `[4]`
151151
fetch('/check_transaction_status', {
152152
method : "POST",
153153
body: JSON.stringify({ "transaction_id" : responseObj.transaction_id }),

examples/flask_app/templates/simple_core_api_checkout_permata.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ <h3>Permata VA Transaction Created</h3>
1313
<b>Order ID:</b> <br>
1414
<code> {{ order_id }}</code> <br>
1515
<br><hr>
16-
<small>Check `web.js` file, section `/simple_core_api_checkout_permata` for the backend implementation</small>
16+
<small>Check `web.py` file, section `/simple_core_api_checkout_permata` for the backend implementation</small>
1717
</div>
1818
</body>
1919
</html>

examples/snap/snap_advanced_example.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
# Please refer to this docs for snap-redirect:
77
# https://docs.midtrans.com/en/snap/integration-guide?id=alternative-way-to-display-snap-payment-page-via-redirect
88

9-
# initialize snap client object
10-
# can find in Merchant Portal -> Settings -> Access keys
9+
# Initialize snap client object
10+
# You can find it in Merchant Portal -> Settings -> Access keys
1111
snap = midtransclient.Snap(
1212
is_production=False,
1313
server_key='YOUR_SERVER_KEY',

examples/snap/snap_simple_example.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
# Please refer to this docs for snap-redirect:
77
# https://docs.midtrans.com/en/snap/integration-guide?id=alternative-way-to-display-snap-payment-page-via-redirect
88

9-
# initialize snap client object
10-
# can find in Merchant Portal -> Settings -> Access keys
9+
# Initialize snap client object
10+
# You can find it in Merchant Portal -> Settings -> Access keys
1111
snap = midtransclient.Snap(
1212
is_production=False,
1313
server_key='YOUR_SERVER_KEY',

examples/transaction_actions/notification_example.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
# Please refer to this docs for sample HTTP POST notifications:
44
# https://docs.midtrans.com/en/after-payment/http-notification?id=sample-of-different-payment-channels
55

6-
# initialize api client object
7-
# can find in Merchant Portal -> Settings -> Access keys
6+
# Initialize api client object
7+
# You can find it in Merchant Portal -> Settings -> Access keys
88
api_client = midtransclient.CoreApi(
99
is_production=False,
1010
server_key='YOUR_SERVER_KEY',

examples/transaction_actions/transaction_actions_example.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import midtransclient
22
# This is just for very basic implementation reference, in production, you should validate the incoming requests and implement your backend more securely.
33

4-
# initialize api client object
5-
# can find in Merchant Portal -> Settings -> Access keys
4+
# Initialize api client object
5+
# You can find it in Merchant Portal -> Settings -> Access keys
66
api_client = midtransclient.CoreApi(
77
is_production=False,
88
server_key='YOUR_SERVER_KEY',

0 commit comments

Comments
 (0)