Pay For Purchase
NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for version 2. Selects a payment option for purchase order created via StartPurchase
Error codes
This operation may return the following PlayFab errors:
| Error | Code |
|---|---|
| DuplicatePurchaseTransactionId | 1489 |
| FailedByPaymentProvider | 1015 |
| InsufficientFunds | 1059 |
| InvalidPaymentProvider | 1063 |
| InvalidPurchaseTransactionStatus | 1081 |
| ProductDisabledForTitle | 1609 |
| PurchaseDoesNotExist | 1080 |
| PurchaseInitializationFailure | 1064 |
Authorizations
This API requires a client session ticket, available from any Client Login function.
Body
This is the second step in the purchasing process, initiating the purchase transaction with the payment provider (if applicable). For payment provider scenarios, the title should next present the user with the payment provider'sinterface for payment. Once the player has completed the payment with the provider, the title should call ConfirmPurchase tofinalize the process and add the appropriate items to the player inventory.
This is the second step in the purchasing process, initiating the purchase transaction with the payment provider (if applicable). For payment provider scenarios, the title should next present the user with the payment provider'sinterface for payment. Once the player has completed the payment with the provider, the title should call ConfirmPurchase tofinalize the process and add the appropriate items to the player inventory.
Currency to use to fund the purchase.
Purchase order identifier returned from StartPurchase.
Payment provider to use to fund the purchase.
The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.).
Payment provider transaction identifier. Required for Facebook Payments.
Response
For web-based payment providers, this operation returns the URL to which the user should be directed inorder to approve the purchase. Items added to the user inventory as a result of this operation will be marked as unconfirmed.
The Http status code. If X-ReportErrorAsSuccess header is set to true, this will report the actual http error code.
The Http status code as a string.
For web-based payment providers, this operation returns the URL to which the user should be directed inorder to approve the purchase. Items added to the user inventory as a result of this operation will be marked as unconfirmed.
