Newer Version Available

This content describes an older version of this product. View Latest

VPL360_CreatePaymentIntentBilling

This Integration Procedure creates payment intent for the Pay Now billing section in Self care.

Sample Input

1{
2    "UserId": "0054W00000DUQ68",
3    "amount": "56"
4}

Parameter

Required/Optional

amount

Required

UserId

Required

Sample Output

1{
2  "payment_method": "pm_1I0meAKOGFB3U5JQ451BqPxf",
3  "on_behalf_of": null,
4  "next_action": null,
5  "metadata": {},
6  "livemode": false,
7  "last_payment_error": null,
8  "invoice": null,
9  "description": null,
10  "customer": "cus_Ic0euqbWnFYOg3",
11  "currency": "inr",
12  "created": 1608614738,
13  "confirmation_method": "automatic",
14  "client_secret": "pi_1I13NOKOGFB3U5JQ9FQIrKw1_secret_MKw1Ro8jwOAueYz1ZUCXJt2aD",
15  "charges": {
16    "url": "/v1/charges?payment_intent=pi_1I13NOKOGFB3U5JQ9FQIrKw1",
17    "total_count": 0,
18    "has_more": false,
19    "data": [],
20    "object": "list"
21  },
22  "capture_method": "automatic",
23  "cancellation_reason": null,
24  "canceled_at": null,
25  "application_fee_amount": null,
26  "application": null,
27  "amount_received": 0,
28  "amount_capturable": 0,
29  "amount": 5600,
30  "object": "payment_intent",
31  "id": "pi_1I13NOKOGFB3U5JQ9FQIrKw1"
32}

Called By

  • Flows:

    • Self care: Payment Integration

  • Components:

    • LWC: vplS360StripePaymentIntegration.js

Calls

  • Data Mapper: VPL360-DRFetchStripeCustId

  • Data Mapper: DRVerifyOrderAcount

  • HTTP Action: Stripe/payment_intents

  • HTTP Action: Stripe/payment_methods

  • Remote Action:

    • Class: VPLUserDetails

    • Method: decryptInput