question

Benjamin avatar image
Benjamin asked

it didn't work reedemcode

    public void UseCoupon()
    {
        string couponCode = ActivatePromo.text;
        Debug.Log("Got couponCode: " + ActivatePromo.text);
        var primaryCatalogName = "DailyFree";
        var request = new RedeemCouponRequest
        {
            CatalogVersion = primaryCatalogName,
            CouponCode = couponCode // This comes from player input
        };
        PlayFabClientAPI.RedeemCoupon(request, CouponSuccess, LogFailure);
    }
    void CouponSuccess(RedeemCouponResult result)
    {
       Debug.Log("coupon was successful. granted item(s): " + result.GrantedItems);
    }


    private void LogFailure(PlayFabError error)
    {
        Debug.Log(error.GenerateErrorReport());
    }

code:

6cw-k7s5-946
rxw-oau1-wyb

@Brendan

unknown.png (88.5 KiB)
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

·
Benjamin avatar image
Benjamin answered

it didn't wor recevied gold

3 comments
10 |1200

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

Seth Du avatar image Seth Du ♦ commented ·

May I know the issue? It seems to work fine and the item is granted.

0 Likes 0 ·
Benjamin avatar image Benjamin Seth Du ♦ commented ·

Yes but no recevied 100 gold werid

Please how explain? check discord my DM write help?

0 Likes 0 ·
Seth Du avatar image Seth Du ♦ Benjamin commented ·

Sorry for the late response. May I ask what's the item ID you are receiving? To be clear, you cannot set up VC only for redeeming, there should be a bundle or container. Does it mean you can get the bundle or container, but the VC is not included? If it is the case, may I have your title ID and item ID for the coupon?

0 Likes 0 ·

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.