Layer 231
constructor
onrampSession#d1e42e24 provider:string session_id:string url:string expires_date:int = OnrampSession;

Parameters

Name Type Description
Provider string Provider ID
SessionId string Session ID
Url string URL where the user completes the purchase
ExpiresDate int When the session expires

Returns

OnrampSession

Gogram Example

// Creating OnrampSessionObj constructor
obj := &tg.OnrampSessionObj{
    Provider: "stripe",
    SessionId: "example",
    Url: "https://example.com",
    ExpiresDate: int32(time.Now().Unix()),
}