Skip to content
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

refundToBalance Syntax Hatası #109

Closed
tokerto7001 opened this issue Mar 10, 2023 · 2 comments
Closed

refundToBalance Syntax Hatası #109

tokerto7001 opened this issue Mar 10, 2023 · 2 comments

Comments

@tokerto7001
Copy link

No description provided.

@tokerto7001
Copy link
Author

CreateRefundToBalanceInitRequest.js dosyasında require edilirken var tanımlaması yaparken, util module'ünden sonra virgül kullanılmış ancak orası noktalı virgül olmalı ki function declaration hata vermesin. Şu anda bu haldeyken bu function çalışmıyor ve
] function CreateRefundToBalanceInitRequest(request) {
[0] ^^^^^^^^
[0]
[0] SyntaxError: Unexpected token 'function'
[0] at Object.compileFunction (node:vm:352:18)
[0] at wrapSafe (node:internal/modules/cjs/loader:1032:15)
[0] at Module._compile (node:internal/modules/cjs/loader:1067:27)
[0] at Object.Module._extensions..js (node:internal/modules/cjs/loader:1155:10)
[0] at Module.load (node:internal/modules/cjs/loader:981:32)
[0] at Function.Module._load (node:internal/modules/cjs/loader:822:12)
[0] at Module.require (node:internal/modules/cjs/loader:1005:19)
[0] at require (node:internal/modules/cjs/helpers:102:18)
[0] at RefundToBalance.IyzipayResource._getPkiString (/Users/hasan/Documents/GitHub/api.payment.rexven/apiserver/node_modules/iyzipay/lib/IyzipayResource.js:97:28)
[0] at RefundToBalance.IyzipayResource._getHttpHeaders (/Users/user/Documents/GitHub/project/node_modules/iyzipay/lib/IyzipayResource.js:40:18)

hatası veriyor.

'use strict';

var BaseRequest = require('./BaseRequest'),
util = require('util'),

function CreateRefundToBalanceInitRequest(request) {
BaseRequest.call(this, {
locale: request['locale'],
conversationId: request['conversationId'],
paymentId: request['paymentId'],
callbackUrl: request['callbackUrl'],
});
}

util.inherits(CreateRefundToBalanceInitRequest, BaseRequest);

module.exports = CreateRefundToBalanceInitRequest;

Olması gereken tek şey util import'undan sonraki virgülün kaldırılması. Bunla alakalı düzeltmeyi yaparsanız sevinirim

@tokerto7001 tokerto7001 changed the title ref refundToBalance Syntax Hatası Mar 10, 2023
@byasarcse
Copy link
Contributor

Değişiklik yapılmıştır.

56710ba

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

2 participants