VPL360_CreatePaymentmethod

This Integration Procedure is used in the self care portal to create the payment card details.

Sample Input

{
	"AccountId": "0014W00002Buu2OQAR",
	"cardExpMonth": "08",
	"cardExpYear": "2022",
	"cardNumber": "4242424242424242",
	"cvc": "336"
}

Parameter

Required/Optional

AccountId

Required

cardExpMonth

Required

cardExpYear

Required

cardNumber

Required

cvc

Required

Sample Output

{
	"ActualTime": 785,
	"CpuTime": 356,
	"vlocity_cmt__PaymentMethod__c_1": [{
		"UpsertSuccess": true,
		"Id": "a3Q4W000000gYc9UAE",
		"vlocity_cmt__MethodType__c": "Credit Card",
		"vlocity_cmt__ExpirationYear__c": "2022",
		"vlocity_cmt__ExpirationMonth__c": "08",
		"vlocity_cmt__CardNumber__c": "4242424242424242",
		"vlocity_cmt__AccountId__c": "0014W00002Buu2OQAR"
	}],
	"error": "OK",
	"responseType": "SObject"
}

Called By

  • Flows:

    • Self care: Billing Details Page

  • Components:

    • LWC: vplS360SelfCareBillingDetails.js

Calls

  • Data Mapper: FetchAPIFromVPLMetadata

  • Data Mapper: DRLoadPaymentMethod

  • HTTP Action: ValidateCreditCard