> For the complete documentation index, see [llms.txt](https://limechatai.gitbook.io/limechat-product-guide/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://limechatai.gitbook.io/limechat-product-guide/whatsapp-marketing/flows/action-nodes/generate-cod-to-prepaid-link-payu.md).

# Generate COD to Prepaid Link (PayU)

Action Node · COD to Prepaid Conversion

### What It Does

This node generates a prepaid payment link through PayU for an existing Cash on Delivery (COD) Shopify order.

The generated payment link allows customers to convert their COD order into a prepaid order before fulfillment.

This helps businesses reduce RTO (Return to Origin) risk, improve cash flow, and increase prepaid order conversions using incentives such as discounts or free shipping.

***

### Example

A customer places a COD order worth ₹2,999.

Before shipment, the workflow sends a prepaid conversion offer:

> “Pay online now and get ₹200 off plus free shipping on your order.”

The workflow generates a PayU payment link and shares it with the customer through WhatsApp.

If the customer completes payment:

* The order converts to prepaid
* COD-related fulfillment risks are reduced

***

## When to Use This Node

Use this node when:

1. You want to convert COD orders into prepaid orders
2. You are running COD recovery or prepaid conversion campaigns
3. You want to reduce RTO and fake order risks
4. You are offering incentives such as discounts or free shipping
5. You need to generate payment links for existing Shopify COD orders

***

## Requirements

&#x20;Before configuring this node:

* Shopify integration must already be connected
* PayU integration must already be configured
* The Shopify order should already exist
* Ensure pricing and discount logic are properly validated

***

## Supported Events

This node supports:

1. Shopify Checkout Created
2. Shopify Checkout Updated
3. Shopify Order Created
4. Shopify Order Updated
5. Shopify Order Fulfilled
6. Shopify Order Cancelled

***

## Setting It Up

### Inputs

| Input                               | Type                 | Required | Description                                                                    |
| ----------------------------------- | -------------------- | -------- | ------------------------------------------------------------------------------ |
| Discount                            | Number               | Yes      | Discount offered during prepaid conversion                                     |
| Discount Type                       | Dropdown (Enum)      | Yes      | Defines whether discount is percentage-based or flat value                     |
| Default Expiry Time                 | Number               | Yes      | Time in seconds for which the payment link remains valid                       |
| Fulfillment Timeslots               | List (Time Values)   | No       | Preferred delivery time slots after prepaid conversion                         |
| Remove Shipping Price on Conversion | Boolean (True/False) | Yes      | Determines whether shipping charges should be removed after prepaid conversion |

***

## Input Field Details

### Discount

Discount value offered to encourage prepaid conversion.

Works together with Discount Type.

#### Example

* 10
* 200

***

### Discount Type

Defines how the discount should be applied.

#### Available Options

| Option     | Meaning                          |
| ---------- | -------------------------------- |
| Percentage | Discount applied as a percentage |
| Value      | Flat amount discount applied     |

#### Example

* Percentage → 10% OFF
* Value → ₹200 OFF

***

### Default Expiry Time

Defines how long the generated payment link remains active.

#### Example

* 3600 → 1 hour
* 86400 → 24 hours

Default value:

* 86400 seconds (24 hours)

***

### Fulfillment Timeslots

Optional delivery time preferences available after prepaid conversion.

Supports multiple values.

#### Example

* 10 AM – 1 PM
* 2 PM – 5 PM
* Same Day Delivery

***

### Remove Shipping Price on Conversion

Controls whether shipping charges should be removed when the customer converts to prepaid.

| Value | Behavior                         |
| ----- | -------------------------------- |
| True  | Shipping charges are removed     |
| False | Existing shipping charges remain |

Default value:

* False

***

## Special Behavior

* Generates PayU prepaid links for existing Shopify COD orders
* Discounts and shipping modifications are automatically applied during conversion
* Expiry times help create urgency-driven campaigns
* Multiple fulfillment time slots can be configured optionally

***

## Outputs

| Output        | Type       | Description                                                   |
| ------------- | ---------- | ------------------------------------------------------------- |
| payment\_link | Text (URL) | Generated PayU payment link shared with the customer          |
| successful    | Boolean    | Indicates whether the payment link was successfully generated |

***

## Output Behavior

| Output Value       | Meaning                             | Recommended Next Step                         |
| ------------------ | ----------------------------------- | --------------------------------------------- |
| successful = true  | Payment link generated successfully | Send link to customer through WhatsApp        |
| successful = false | Failed to generate payment link     | Retry generation or trigger fallback handling |

***

## What Happens After It Runs

Once executed:

* A prepaid payment link is generated through PayU
* Discounts and shipping adjustments are applied if configured
* The workflow receives the payment URL
* The payment link can be shared with the customer through WhatsApp
* Successful payments can trigger:
  * Order updates
  * Prepaid conversion workflows
  * Fulfillment processing
  * CRM tagging
  * Payment success automation

***

## Best Practices

&#x20;Offer meaningful discounts to maximize prepaid conversion rates.

&#x20;Use shorter expiry durations for urgency-driven campaigns.

&#x20;Consider removing shipping charges as an additional prepaid incentive.

&#x20;Combine with:

* WhatsApp reminder flows
* COD verification workflows
* Payment success tracking
* CRM segmentation
* Customer retention campaigns

&#x20;Trigger the payment link shortly after order placement for higher conversion probability.

***

## Key Reminders

1. Shopify and PayU integrations are mandatory
2. Works only for existing Shopify COD orders
3. Discount strategy directly impacts conversion performance
4. Payment links expire automatically after the configured duration
5. Shipping charges can optionally be removed during conversion
6. Typically followed by a WhatsApp message node to share the payment link
7. Useful for reducing COD-related RTO risks
8. Supports operational and conversion-focused prepaid workflows
