question

Ethan K. G avatar image
Ethan K. G asked

Credit Card Payment Integration

The scenario is player only uses credit card to purchase onetime consumable stuff, for example, a ticket. Can PlayFab implement this feature by using PayPal or Facebook payments?

Player DataPlayer Inventory
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Rick Chen avatar image
Rick Chen answered

Yes, there is already a feature for enabling purchases via payment providers such as Facebook and PayPal in PlayFab. To setup, you could go to your [Game Manager]->[Add-ons] Tab and install the payment providers you want to use. Then you could implement the following API for client side:

  • StartPurchase - Creates the list of goods for the purchase.
  • PayForPurchase - Establishes the payment provider and locks the payment pricing.
  • ConfirmPurchase - Validates whether the purchase completed successfully and if necessary ensures the goods are added to the player’s inventory

Please refer to this instruction for more detail: Non-receipt payment processing

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.