Query Saved Payment Method Records Using Apex

You can query Saved Payment Method records in your Salesforce org using Apex. This option is applicable only to third-party payment gateways.

Here's an example of an Apex query to retrieve SPM records.

Here’s a sample Apex snippet that demonstrates how to make gateway calls using the queried SPM records.

See Also