Skip to content

Commit 0ddb761

Browse files
authored
Merge pull request #3 from stivenmasha/patch-2
Update README.md
2 parents d47b37f + 7e6db0e commit 0ddb761

File tree

1 file changed

+9
-13
lines changed

1 file changed

+9
-13
lines changed

Diff for: README.md

+9-13
Original file line numberDiff line numberDiff line change
@@ -293,13 +293,13 @@ public class MyActivity extends AppCompatActivity {
293293

294294
## Request: Pre Authorized Payments
295295

296-
You could start payment intent from your app using chargeId.
296+
You could start authorization intent from your app using authorization token.
297297

298298
Steps:
299299

300300
1. Check if you could use `preAuthorizedPayment()` on user device (obtain URI and use `getApiStatus()`)
301301
2. Check response of `getApiStatus()`, if `isValidRequest()` is true you can proceed, else you can check the error code.
302-
3. Get Pre Authorized token [from your backend](#more-info).
302+
3. Get authorization token [from your backend](#more-info).
303303
4. Obtain Intent, use `SatispayIntent.preAuthorizedPayment(@NonNull String scheme, @NonNull String appId, @NonNull String token)`
304304
5. Call `startActivityForResult()` using the Intent, you should define a constant requestCode parameter.
305305
6. Override `onActivityResult()` and use `SatispayIntent.ApiStatus.from(resultCode, data)` for parse the results.
@@ -538,9 +538,7 @@ public class MyActivity extends AppCompatActivity {
538538

539539
## Pay with charge charge id
540540

541-
To start a payment intent from your app, use the chargeId obtained from your server.
542-
543-
Please note: details on how to obtain a chargeId available at: [https://s3-eu-west-1.amazonaws.com/docs.online.satispay.com/index.html#create-a-charge](https://s3-eu-west-1.amazonaws.com/docs.online.satispay.com/index.html#create-a-charge)
541+
You could start payment intent from your app using chargeId.
544542

545543
Steps:
546544

@@ -608,15 +606,13 @@ public class MyActivity extends AppCompatActivity {
608606

609607
## Request: Pre Authorized Payments
610608

611-
To start a "Pre Authorized Payment" intent from your app, use the token obtained from your server.
612-
613-
Please note: details on how to obtain a token available at: [https://s3-eu-west-1.amazonaws.com/docs.online.satispay.com/index.html#create-a-charge](https://s3-eu-west-1.amazonaws.com/docs.online.satispay.com/index.html#create-a-charge)
609+
You could start authorization intent from your app using authorization token.
614610

615611
Steps:
616612

617613
1. Check if you could use `preAuthorizedPayment()` on user device (use `isSatispayApiAvailable("satispay://external/preauthorized-payments/payment?id=TEST_API")`)
618614
2. Check response of `isSatispayApiAvailable()` is true you can proceed, else you can check the error code.
619-
3. Get token [from your backend](#more-info).
615+
3. Get authorization token [from your backend](#more-info).
620616
4. Build `payPreAuthorizedPaymentIntent` using follow URI: `satispay://external/preauthorized-payments/payment?id=[token]`
621617
5. Call `startActivityForResult()` using the Intent, you should define a constant requestCode parameter.
622618
6. Override `onActivityResult()`.
@@ -678,13 +674,13 @@ public class MyActivity extends AppCompatActivity {
678674

679675
## More info
680676

681-
### Pay with charge charge id: obtain Charge id
677+
### Pay with charge id: obtain chargeId
682678

683-
Additional info on how to create and handle charges are available in the Online API documentation at: https://s3-eu-west-1.amazonaws.com/docs.online.satispay.com/index.html
679+
Additional info on how to create and handle the ChargeId (ID of the payment) are available at https://developers.satispay.com/reference#create-a-payment
684680

685-
### Pre Authorized Payments: obtain token
681+
### Pre Authorized Payments: obtain authorization token
686682

687-
Additional info on how to create and handle Pre Authorized Payments are available in the Online API documentation at: https://s3-eu-west-1.amazonaws.com/docs.online.satispay.com/index.html
683+
Additional info on how to create and handle the authorization token are available at https://developers.satispay.com/reference#create-authorization
688684

689685

690686
## License

0 commit comments

Comments
 (0)