@coinbase/cdp-sdk
Version:
SDK for interacting with the Coinbase Developer Platform Wallet API
23 lines (21 loc) • 1.17 kB
JavaScript
import { cdpApiClient } from "../../cdpApiClient.js";
/**
* List payment methods linked to your entity. Payment methods represent external financial instruments that can be used as a target for transfers. The list will not include disabled or deleted payment methods.
**Currently Supported Types:**
- `fedwire`: Domestic USD wire transfers
- `swift`: International wire transfers
- `sepa`: SEPA EUR transfers
**Note:** Payment methods are created and verified through your linked CDP entity. Currently, fetching payment methods is only supported for Prime investment vehicles linked to CDP.
* @summary List payment methods
*/
export const listPaymentMethods = (params, options) => {
return cdpApiClient({ url: `/v2/payment-methods`, method: "GET", params }, options);
};
/**
* Get details of a specific payment method by its ID. Returns 404 if the payment method is not found or not owned by the requesting entity.
* @summary Get payment method
*/
export const getPaymentMethod = (paymentMethodId, options) => {
return cdpApiClient({ url: `/v2/payment-methods/${paymentMethodId}`, method: "GET" }, options);
};
//# sourceMappingURL=payment-methods.js.map