Preview: SendMock has no stable release yet. These docs follow develop.
SendMock
DeeperPayments

Payments in depth

Every control and text of Payments > All payments, a payment and its dialogs.

Every control and text this screen shows, in screen order. The list is read from the demo by a crawl, and CI fails when the screen changes without its entry here.

Payments > All payments lists every test payment, from any gateway, and lets you simulate what happens next.

The screen as a whole: Payments.

Payments, with a number on each control

The numbers match the entries below. The picture shows the first screenful; controls further down, and texts, have no marker.

On the screen

1. Payments

Heading.

  • What it does: Names the screen, in the header and above the list.

2. Read the Payments guide

Link.

  • What it does: Opens this screen's page in the user guide, in a new tab.
  • Links to: Payments.

3. Test payments made through the emulated gateways. No real money moves, and only test cards are accepted.

Text.

4. New payment

Button.

  • What it does: Opens New payment.

5. All

Button.

  • What it does: Shows every payment.

6. Succeeded

Button.

  • What it does: Shows payments that succeeded.

7. Pending

Button.

  • What it does: Shows payments not finished yet: open checkouts, authorized but not captured, or waiting for 3-D Secure.

8. Failed

Button.

  • What it does: Shows declined and failed payments.

9. Refunded

Button.

  • What it does: Shows payments refunded in full or in part.

10. Disputed

Button.

  • What it does: Shows payments with a dispute.

11. Provider

Drop-down.

  • What it does: Shows one gateway's payments, or all.

12. Currency

Drop-down.

  • What it does: Shows payments in one currency, or all.

13. Amount

Column.

  • What it does: The amount and currency.

14. Provider

Column.

  • What it does: The gateway it went through, such as Stripe or SSLCommerz.

15. Status

Column.

  • What it does: Its status, such as succeeded, requires action or refunded.

16. Customer

Column.

  • What it does: The customer's email.

17. Time

Column.

  • What it does: When it was created.

18. …

Link, in each row.

New payment dialog

19. New payment

Heading.

  • What it does: The New payment dialog.

20. Paid at once with the test card, as your app's server does without a checkout page. The card's outcome decides it.

Text.

  • What it does: Explains a direct payment: the test card decides success, decline or 3-D Secure.
  • Links to: Payments.

21. Gateway

Drop-down.

  • What it does: The gateway the payment goes through.

22. Capture

Drop-down.

  • What it does: Capture at once, or only authorize and capture later.

23. Amount

Field.

  • What it does: The amount, in the currency's main unit.

24. Currency

Field.

  • What it does: The three-letter currency code, such as USD.

25. Test card

Field.

  • What it does: A documented test card number; its outcome decides the payment.
  • Errors: A real card number is refused with "use a test card" and nothing is stored.

26. Customer email

Field.

  • What it does: The customer's email.

27. Cancel

Button.

  • What it does: Closes the dialog without doing anything.

28. Pay

Button.

29. Close

Button.

  • What it does: Closes the dialog or drawer.

A payment is open

30. Payment

Heading.

  • What it does: The payment drawer.

31. Test payment: no real money moved.

Text.

  • What it does: Reminds that nothing real happened.

32. Copy checkout_session

Button.

  • What it does: Copies the provider's checkout session id.

33. Copy payment_intent

Button.

  • What it does: Copies the provider's payment id (here a Stripe PaymentIntent).

34. Simulate

Button.

  • What it does: Opens what can happen next to this payment: capture, void, refund, dispute, expire and more, by its status.

35. Resend notification

Button.

36. Line items

Heading.

  • What it does: What was bought.

37. Item

Column.

  • What it does: The item.

38. Qty

Column.

  • What it does: How many.

39. Price

Column.

  • What it does: The price of one.

40. Total

Column.

  • What it does: The line's total.

41. Metadata: order_id=ord_XJD#C

Text.

  • What it does: The metadata your app sent (here an order id).

42. Timeline

Heading.

  • What it does: Every step the payment went through, with times.

43. Redirects

Heading.

  • What it does: Where the customer was sent back to, with the fields of each redirect.

44. Notifications

Heading.

  • What it does: The notifications the gateway sent your app.

45. # … # minutes ago

Link, in each row.

  • What it does: A notification: its status code, event and time; opens its delivery.
  • Links to: Deliveries.

46. Close

Button.

  • What it does: Closes the dialog or drawer.

Simulate menu

47. Refund...

Menu item.

  • What it does: Opens Refund payment. Under the label, and read out by screen readers as its description: the endpoints the event will reach through your webhook rules, or No webhook.

48. Choose webhooks for Refund

Menu item.

49. Open dispute

Menu item.

50. Choose webhooks for Open dispute

Menu item.

Refund payment dialog

51. Refund payment

Heading.

  • What it does: The Refund payment dialog.

52. $#.# can be refunded.

Text.

  • What it does: How much is left to refund.

53. Amount (USD)

Field.

  • What it does: How much to refund; less than the whole is a partial refund.

54. Cancel

Button.

  • What it does: Closes the dialog without doing anything.

55. Refund

Button.

56. Close

Button.

  • What it does: Closes the dialog or drawer.

Answer dispute dialog

57. Answer dispute

Heading.

  • What it does: The Answer dispute dialog.

58. The dispute goes under review until it is won or lost.

Text.

  • What it does: Explains what answering does.

59. Evidence

Field.

  • What it does: What you send the card network as evidence.

60. Cancel

Button.

  • What it does: Closes the dialog without doing anything.

61. Send answer

Button.

62. Close

Button.

  • What it does: Closes the dialog or drawer.

With no data yet

63. No payments yet

Text.

  • What it does: Shown when no payment was made yet.

64. Payments appear here when your app creates one through POST /api/v#/payments, a hosted checkout (POST /api/v#/payments/checkout) or an emulated provider such as Stripe or SSLCommerz.

Text.

  • What it does: Explains the three ways payments arrive.

When the data cannot load

65. Could not load the payments. Try again

Message.

  • What it does: Shown when the payments could not be loaded.
  • Errors: Check SendMock is running, then press Try again.

66. Could not load the payments.

Text.

  • What it does: The message inside the alert.

67. Try again

Button.

On this page

On the screen1. Payments2. Read the Payments guide3. Test payments made through the emulated gateways. No real money moves, and only test cards are accepted.4. New payment5. All6. Succeeded7. Pending8. Failed9. Refunded10. Disputed11. Provider12. Currency13. Amount14. Provider15. Status16. Customer17. Time18. …New payment dialog19. New payment20. Paid at once with the test card, as your app's server does without a checkout page. The card's outcome decides it.21. Gateway22. Capture23. Amount24. Currency25. Test card26. Customer email27. Cancel28. Pay29. CloseA payment is open30. Payment31. Test payment: no real money moved.32. Copy checkout_session33. Copy payment_intent34. Simulate35. Resend notification36. Line items37. Item38. Qty39. Price40. Total41. Metadata: order_id=ord_XJD#C42. Timeline43. Redirects44. Notifications45. # … # minutes ago46. CloseSimulate menu47. Refund...48. Choose webhooks for Refund49. Open dispute50. Choose webhooks for Open disputeRefund payment dialog51. Refund payment52. $#.# can be refunded.53. Amount (USD)54. Cancel55. Refund56. CloseAnswer dispute dialog57. Answer dispute58. The dispute goes under review until it is won or lost.59. Evidence60. Cancel61. Send answer62. CloseWith no data yet63. No payments yet64. Payments appear here when your app creates one through POST /api/v#/payments, a hosted checkout (POST /api/v#/payments/checkout) or an emulated provider such as Stripe or SSLCommerz.When the data cannot load65. Could not load the payments. Try again66. Could not load the payments.67. Try again