Complete reference for all billing-related Protocol Buffer messages.
RequestPaymentLink
Request a payment link for subscription.
Request: billing.RequestPaymentLink → Response: billing.PaymentLink
URL to redirect after payment completion
Plan identifier (e.g., “premium”, “pro”)
Billing period: “monthly” or “yearly”
PaymentLink
CancelSubscription
Cancel the current subscription.
Request: billing.CancelSubscription → Response: ()
No parameters.
Protocol Definition
syntax = "proto3";
package tangle.client.billing;
// billing.requestPaymentLink -> billing.PaymentLink
message RequestPaymentLink {
string redirect_url = 1;
string plan = 2;
string billing_period = 3; // monthly or yearly
}
message PaymentLink {
string url = 1;
}
// billing.cancelSubscription -> billing.CancelSubscription
message CancelSubscription {}