Skip to main content
Glama

paymentMethods.update

Update billing address details for a payment method to ensure accurate transaction processing and customer information management.

Instructions

Update a Ryft payment method billing address.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYes
billingAddressYes

Implementation Reference

  • The implementation and registration of the 'paymentMethods.update' tool.
    registerTool(
      'paymentMethods.update',
      'Update a Ryft payment method billing address.',
      paymentMethodUpdateSchema.shape,
      async (args) => {
        const parsed = paymentMethodUpdateSchema.parse(args);
        const { id, billingAddress } = parsed;
        return client.patch(`/payment-methods/${id}`, {
          billingAddress: {
            firstName: billingAddress.firstName,
            lastName: billingAddress.lastName,
            organization: billingAddress.organization,
            lineOne: billingAddress.lineOne ?? billingAddress.firstLine,
            lineTwo: billingAddress.lineTwo ?? billingAddress.secondLine,
            city: billingAddress.city,
            postalCode: billingAddress.postalCode,
            country: billingAddress.country,
            region: billingAddress.region,
          },
        });
      },
    );
  • The input validation schema for the 'paymentMethods.update' tool.
    const paymentMethodUpdateSchema = z.object({
      id: z.string().min(1),
      billingAddress: paymentMethodBillingAddressSchema,
    });

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/bkawk/ryft-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server