Layer 231
OnrampSessionObj
A purchase session created with an on-ramp provider.
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
OnrampSessionGogram Example
// Creating OnrampSessionObj constructor obj := &tg.OnrampSessionObj{ Provider: "stripe", SessionId: "example", Url: "https://example.com", ExpiresDate: int32(time.Now().Unix()), }