C# Класс PayPal.Api.PayPalRelationalObject

Represents a PayPal model object that will be returned from PayPal containing common resource data.
Наследование: PayPalResource
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание

Открытые методы

Метод Описание
GetApprovalUrl ( bool setUserActionParameter = false ) : string

Gets the approval URL from a list of HATEOAS links.

GetHateoasLink ( string relationName ) : Links

Gets the HATEOAS link that matches the specified relation name.

GetTokenFromApprovalUrl ( ) : string

Gets the resource token from an approval URL HATEOAS link, if found.

Описание методов

GetApprovalUrl() публичный Метод

Gets the approval URL from a list of HATEOAS links.
public GetApprovalUrl ( bool setUserActionParameter = false ) : string
setUserActionParameter bool If true, appends the 'useraction' URL query parameter. /// For PayPal payments, this will set the approval button text on the PayPal site to "Pay Now".
Результат string

GetHateoasLink() публичный Метод

Gets the HATEOAS link that matches the specified relation name.
public GetHateoasLink ( string relationName ) : Links
relationName string The name of the link relation.
Результат Links

GetTokenFromApprovalUrl() публичный Метод

Gets the resource token from an approval URL HATEOAS link, if found.
public GetTokenFromApprovalUrl ( ) : string
Результат string