mirror of
https://github.com/photonstorm/phaser
synced 2024-11-24 21:53:59 +00:00
21 lines
718 B
JavaScript
21 lines
718 B
JavaScript
/**
|
|
* @author Richard Davey <rich@photonstorm.com>
|
|
* @copyright 2018 Photon Storm Ltd.
|
|
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
|
*/
|
|
|
|
var GetFastValue = require('../utils/object/GetFastValue');
|
|
|
|
var Purchase = function (data)
|
|
{
|
|
return {
|
|
developerPayload: GetFastValue(data, 'developerPayload', ''),
|
|
paymentID: GetFastValue(data, 'paymentID', ''),
|
|
productID: GetFastValue(data, 'productID', ''),
|
|
purchaseTime: GetFastValue(data, 'purchaseTime', ''),
|
|
purchaseToken: GetFastValue(data, 'purchaseToken', ''),
|
|
signedRequest: GetFastValue(data, 'signedRequest', '')
|
|
};
|
|
};
|
|
|
|
module.exports = Purchase;
|