Payment Methods

Add, remove, update a payment method of an customer

Card objects represent your customer's payment instruments.

Add New Card

POST https://api.berymo.com/api/schedule/v1/payment/cards

This endpoint allows you to add new card. The payment form should be integrated with Stripe.js. A token which is generated from Stripe.js should be sent to server.

Request Body

Name
Type
Description

card

object

Card details

token

string

Stripe.js token.

{
    "status": true,
    "message": "Your payment method added successfully.",
    "card": [CardObject]
}
{
	"token": "tok_visa_debit",
	"card": {
		"last4": "1213",
		"brand": "Visa",
		"funding": "credit",
		"addressCountry": "TR",
		"addressZip": "35330",
		"isApplePayCard": false,
		"expMonth": "12",
		"expYear": "2022"
	}
}

Remove A Card

DELETE https://api.berymo.com/api/schedule/v1/payment/cards/:uuid

Remove a card from customer.

Path Parameters

Name
Type
Description

uuid

integer

UUID of an customer

Last updated

Was this helpful?