Skip to content

Mode Development tidak berfungsi #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
ryugenxd opened this issue Sep 5, 2023 · 2 comments
Closed

Mode Development tidak berfungsi #1

ryugenxd opened this issue Sep 5, 2023 · 2 comments

Comments

@ryugenxd
Copy link

ryugenxd commented Sep 5, 2023

image

respon body :

{"success":false,"message":"You are trying to use Production API but with Sandbox credential (T25315). Please go to https:\/\/tripay.co.id\/member\/merchant to get your Production credentials or use Sandbox API url https:\/\/tripay.co.id\/api-sandbox\/..."}{
    "request": {
        "url": "https://tripay.co.id/api/transaction/create",
        "method": "POST",
        "headers": {
            "Content-Length": [
                "459"
            ],
            "Authorization": [
                "Bearer DEV-w8N26z8ZAI81wwZdNV9bcTtGeFX3zhOlaUWnoQiO"
            ],
            "User-Agent": [
                "zerosdev/tripay-sdk-php"
            ],
            "Content-Type": [
                "application/json"
            ],
            "Host": [
                "tripay.co.id"
            ]
        },
        "body": "{\"method\":\"BRIVA\",\"merchant_ref\":\"INV123\",\"customer_name\":\"Nama Pelanggan\",\"customer_email\":\"email@konsumen.id\",\"customer_phone\":\"081234567890\",\"expired_time\":1693907177,\"order_items\":[{\"sku\":null,\"name\":\"Gula\",\"price\":10000,\"quantity\":1,\"product_url\":null,\"image_url\":null},{\"sku\":null,\"name\":\"Kopi\",\"price\":6000,\"quantity\":5,\"product_url\":null,\"image_url\":null}],\"amount\":40000,\"signature\":\"136e00395fbcdb7ffaa1a26f5a6e082ec64162d9ca2ae0ce9c964724446c5796\"}"
    },
    "response": {
        "status": 400,
        "headers": {
            "Date": [
                "Tue, 05 Sep 2023 03:46:17 GMT"
            ],
            "Content-Type": [
                "application/json"
            ],
            "Transfer-Encoding": [
                "chunked"
            ],
            "Connection": [
                "keep-alive"
            ],
            "CF-Cache-Status": [
                "DYNAMIC"
            ],
            "Report-To": [
                "{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=TWzhKrvcuBZx5RslYSaOkHNVF2U2BDXV%2FCA63vikWcLbZUijsMW4MTUvBkN%2F2cbTTWbGFTNot4Yqjpl00B8RiYj8TD%2FxNYmlCNJabCuDHYf7B1rP62sdTBZ6GnTUKw%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"
            ],
            "NEL": [
                "{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"
            ],
            "Server": [
                "cloudflare"
            ],
            "CF-RAY": [
                "801b7bfa78363f58-SIN"
            ]
        },
        "body": "{\"success\":false,\"message\":\"You are trying to use Production API but with Sandbox credential (T25315). Please go to https:\\/\\/tripay.co.id\\/member\\/merchant to get your Production credentials or use Sandbox API url https:\\/\\/tripay.co.id\\/api-sandbox\\/...\"}"
    }
}
@irfanykywz
Copy link

edit filenya Client.php parameternya salah hrusnya 0,1,2,3

@zerosdev
Copy link
Owner

zerosdev commented Apr 3, 2025

Fixed #2

@zerosdev zerosdev closed this as completed Apr 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants