---
updatedAt: 2026-07-16T12:54:31.000Z
agentTools:
  projectIndex: https://documentation.lemonway.com/llms.txt
---

# Pay by Card 

### Initiate a Web Payment

**EndPoint:** `POST /v2/moneyins/card/webinit`

### Redirect Payment

Used when the end-user buys a service or good on your website and then is redirected to the PSP (Payment Service Provider) payment page.

<br />

```mermaid
sequenceDiagram
  participant Customer
  participant Partner
  participant Lemonway
  participant Acceptor

  Customer->>Partner: Wants to pay by card
  Partner->>Lemonway: Payment request

  Lemonway->>Lemonway: Format and business verifications
  Lemonway->>Lemonway: Transaction and token generation
  Lemonway-->>Partner: moneyintoken and id

  Partner-->>Customer: Redirect to Lemonway payment URL
  Customer->>Lemonway: Browser redirection

  Lemonway->>Lemonway: Retrieve transaction with moneyintoken
  Lemonway->>Acceptor: Create payment form
  Acceptor-->>Lemonway: Payment page URL

  Lemonway-->>Customer: Redirect to payment page URL
  Customer->>Acceptor: Makes payment
  Acceptor-->>Lemonway: Redirect URL + payment status

  Lemonway-->>Customer: Redirect to return/error/cancel URL
  Lemonway-->>Partner: Redirect URL + response_wkToken
  Lemonway->>Lemonway: Update transaction

  Acceptor->>Lemonway: POST notification
  Lemonway->>Partner: POST notification

  Partner->>Lemonway: GetMoneyIn (GET /v2/moneyins)
  Lemonway-->>Partner: Information

  Lemonway->>Acceptor: Re-update status information
  Lemonway->>Lemonway: Update transaction for abandons
  Lemonway-->>Partner: Send Webhook ID: 42

```

<br />

<br />